diff --git a/Router.d.ts b/Router.d.ts index 056aaee..228b314 100644 --- a/Router.d.ts +++ b/Router.d.ts @@ -142,6 +142,12 @@ export const location: Readable */ export const querystring: Readable +/** + * Readable store that returns the current list of params + */ +export const params: Readable | undefined> +// Note: the above is implemented as writable but exported as readable because consumers should not modify the value + /** List of routes */ export type RouteDefinition = Record | Map diff --git a/Router.svelte b/Router.svelte index 50e194e..ed19c4e 100644 --- a/Router.svelte +++ b/Router.svelte @@ -1,5 +1,5 @@