From 560928dff49b38dda2d3471adf0019918ff3b880 Mon Sep 17 00:00:00 2001 From: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> Date: Wed, 28 Oct 2020 20:39:16 -0700 Subject: [PATCH] Improved comments in typings file --- Router.d.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Router.d.ts b/Router.d.ts index aefe7e2..056aaee 100644 --- a/Router.d.ts +++ b/Router.d.ts @@ -5,7 +5,7 @@ import {Readable} from 'svelte/store' /** Dictionary with route details passed to the pre-conditions functions, as well as the `routeLoading` and `conditionsFailed` events */ export interface RouteDetail { - /** Route matched as defined in the route definition (could be a string or a reguar expression object) */ + /** Route matched as defined in the route definition (could be a string or a regular expression object) */ route: string | RegExp /** Location path */ @@ -118,11 +118,6 @@ export function replace(location: string): Promise */ export function link(node: HTMLElement, hrefVar?: string): {update: (hrefVar?: string) => void} -/** - * @typedef {Object} Location - * @property {string} location - Location (page/view), for example `/book` - * @property {string} [querystring] - Querystring from the hash, as a string not parsed - */ /** Full location from the hash: page and querystring */ interface Location { /** Location (page/view), for example `/book` */