diff --git a/packages/kit/src/exports/public.d.ts b/packages/kit/src/exports/public.d.ts index 81d0de63f0ac..0d5888be0699 100644 --- a/packages/kit/src/exports/public.d.ts +++ b/packages/kit/src/exports/public.d.ts @@ -1088,31 +1088,31 @@ export interface AfterNavigate extends Omit { } /** - * The shape of the `$page` store + * The shape of the [`page`](https://svelte.dev/docs/kit/$app-state#page) reactive object and the [`$page`](https://svelte.dev/docs/kit/$app-stores) store. */ export interface Page< Params extends Record = Record, RouteId extends string | null = string | null > { /** - * The URL of the current page + * The URL of the current page. */ url: URL; /** - * The parameters of the current page - e.g. for a route like `/blog/[slug]`, a `{ slug: string }` object + * The parameters of the current page - e.g. for a route like `/blog/[slug]`, a `{ slug: string }` object. */ params: Params; /** - * Info about the current route + * Info about the current route. */ route: { /** - * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]` + * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`. */ id: RouteId; }; /** - * Http status code of the current page + * HTTP status code of the current page. */ status: number; /** diff --git a/packages/kit/types/index.d.ts b/packages/kit/types/index.d.ts index e56cee9c8c31..0a615f90f4fd 100644 --- a/packages/kit/types/index.d.ts +++ b/packages/kit/types/index.d.ts @@ -1070,31 +1070,31 @@ declare module '@sveltejs/kit' { } /** - * The shape of the `$page` store + * The shape of the [`page`](https://svelte.dev/docs/kit/$app-state#page) reactive object and the [`$page`](https://svelte.dev/docs/kit/$app-stores) store. */ export interface Page< Params extends Record = Record, RouteId extends string | null = string | null > { /** - * The URL of the current page + * The URL of the current page. */ url: URL; /** - * The parameters of the current page - e.g. for a route like `/blog/[slug]`, a `{ slug: string }` object + * The parameters of the current page - e.g. for a route like `/blog/[slug]`, a `{ slug: string }` object. */ params: Params; /** - * Info about the current route + * Info about the current route. */ route: { /** - * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]` + * The ID of the current route - e.g. for `src/routes/blog/[slug]`, it would be `/blog/[slug]`. */ id: RouteId; }; /** - * Http status code of the current page + * HTTP status code of the current page. */ status: number; /**