@sveltejs/kit 1.0.0-next.445 → 1.0.0-next.448

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/package.json +7 -9
  2. package/src/{core/constants.js → constants.js} +2 -0
  3. package/src/core/env.js +1 -1
  4. package/src/core/sync/write_ambient.js +1 -1
  5. package/src/core/sync/write_client_manifest.js +17 -20
  6. package/src/exports/vite/dev/index.js +1 -1
  7. package/src/exports/vite/preview/index.js +1 -1
  8. package/src/runtime/client/ambient.d.ts +8 -2
  9. package/src/runtime/client/client.js +71 -56
  10. package/src/runtime/client/parse.js +17 -4
  11. package/src/runtime/client/start.js +2 -0
  12. package/src/runtime/client/types.d.ts +2 -0
  13. package/src/runtime/server/data/index.js +146 -0
  14. package/src/runtime/server/index.js +20 -143
  15. package/src/runtime/server/page/index.js +17 -12
  16. package/src/runtime/server/page/load_data.js +1 -45
  17. package/src/runtime/server/page/render.js +29 -11
  18. package/src/runtime/server/page/respond_with_error.js +0 -1
  19. package/src/runtime/server/utils.js +21 -0
  20. package/types/internal.d.ts +0 -1
  21. package/src/core/sync/write_types/test/layout/+layout.js +0 -5
  22. package/src/core/sync/write_types/test/layout/+layout.server.js +0 -5
  23. package/src/core/sync/write_types/test/layout/+layout.svelte +0 -0
  24. package/src/core/sync/write_types/test/layout/+page.js +0 -5
  25. package/src/core/sync/write_types/test/layout/+page.server.js +0 -5
  26. package/src/core/sync/write_types/test/layout/+page.svelte +0 -0
  27. package/src/core/sync/write_types/test/layout/_expected/$types.d.ts +0 -67
  28. package/src/core/sync/write_types/test/layout-advanced/(main)/+layout.server.js +0 -5
  29. package/src/core/sync/write_types/test/layout-advanced/(main)/+layout.svelte +0 -0
  30. package/src/core/sync/write_types/test/layout-advanced/(main)/+page.js +0 -5
  31. package/src/core/sync/write_types/test/layout-advanced/(main)/+page@.svelte +0 -0
  32. package/src/core/sync/write_types/test/layout-advanced/(main)/sub/+page.js +0 -5
  33. package/src/core/sync/write_types/test/layout-advanced/(main)/sub/+page.svelte +0 -0
  34. package/src/core/sync/write_types/test/layout-advanced/+layout.js +0 -5
  35. package/src/core/sync/write_types/test/layout-advanced/+layout.svelte +0 -0
  36. package/src/core/sync/write_types/test/layout-advanced/_expected/$types.d.ts +0 -32
  37. package/src/core/sync/write_types/test/layout-advanced/_expected/(main)/$types.d.ts +0 -42
  38. package/src/core/sync/write_types/test/layout-advanced/_expected/(main)/sub/$types.d.ts +0 -33
  39. package/src/core/sync/write_types/test/simple-page-server-and-shared/+page.js +0 -5
  40. package/src/core/sync/write_types/test/simple-page-server-and-shared/+page.server.js +0 -5
  41. package/src/core/sync/write_types/test/simple-page-server-and-shared/+page.svelte +0 -0
  42. package/src/core/sync/write_types/test/simple-page-server-and-shared/_expected/$types.d.ts +0 -44
  43. package/src/core/sync/write_types/test/simple-page-server-only/+page.server.js +0 -5
  44. package/src/core/sync/write_types/test/simple-page-server-only/+page.svelte +0 -0
  45. package/src/core/sync/write_types/test/simple-page-server-only/_expected/$types.d.ts +0 -30
  46. package/src/core/sync/write_types/test/simple-page-shared-only/+page.js +0 -5
  47. package/src/core/sync/write_types/test/simple-page-shared-only/+page.svelte +0 -0
  48. package/src/core/sync/write_types/test/simple-page-shared-only/_expected/$types.d.ts +0 -33
  49. package/src/core/sync/write_types/test/slugs/+layout.js +0 -1
  50. package/src/core/sync/write_types/test/slugs/+layout.svelte +0 -1
  51. package/src/core/sync/write_types/test/slugs/[...rest]/+page.js +0 -3
  52. package/src/core/sync/write_types/test/slugs/[...rest]/+page.svelte +0 -0
  53. package/src/core/sync/write_types/test/slugs/[slug]/+page.js +0 -3
  54. package/src/core/sync/write_types/test/slugs/[slug]/+page.svelte +0 -0
  55. package/src/core/sync/write_types/test/slugs/_expected/$types.d.ts +0 -32
  56. package/src/core/sync/write_types/test/slugs/_expected/[...rest]/$types.d.ts +0 -29
  57. package/src/core/sync/write_types/test/slugs/_expected/[slug]/$types.d.ts +0 -29
  58. package/src/core/sync/write_types/test/slugs-layout-not-all-pages-have-load/+layout.js +0 -1
  59. package/src/core/sync/write_types/test/slugs-layout-not-all-pages-have-load/+layout.svelte +0 -1
  60. package/src/core/sync/write_types/test/slugs-layout-not-all-pages-have-load/_expected/$types.d.ts +0 -30
  61. package/src/core/sync/write_types/test/slugs-layout-not-all-pages-have-load/_expected/nested/$types.d.ts +0 -32
  62. package/src/core/sync/write_types/test/slugs-layout-not-all-pages-have-load/_expected/nested/[...rest]/$types.d.ts +0 -37
  63. package/src/core/sync/write_types/test/slugs-layout-not-all-pages-have-load/_expected/nested/[slug]/$types.d.ts +0 -17
  64. package/src/core/sync/write_types/test/slugs-layout-not-all-pages-have-load/nested/+layout.js +0 -1
  65. package/src/core/sync/write_types/test/slugs-layout-not-all-pages-have-load/nested/+layout.svelte +0 -1
  66. package/src/core/sync/write_types/test/slugs-layout-not-all-pages-have-load/nested/[...rest]/+page.js +0 -3
  67. package/src/core/sync/write_types/test/slugs-layout-not-all-pages-have-load/nested/[...rest]/+page.svelte +0 -0
  68. package/src/core/sync/write_types/test/slugs-layout-not-all-pages-have-load/nested/[slug]/+page@.svelte +0 -0
@@ -1,33 +0,0 @@
1
- import type * as Kit from '@sveltejs/kit';
2
-
3
- type RouteParams = {};
4
- type MaybeWithVoid<T> = {} extends T ? T | void : T;
5
- export type RequiredKeys<T> = {
6
- [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K;
7
- }[keyof T];
8
- type OutputDataShape<T> = MaybeWithVoid<
9
- Omit<App.PageData, RequiredKeys<T>> &
10
- Partial<Pick<App.PageData, keyof T & keyof App.PageData>> &
11
- Record<string, any>
12
- >;
13
- type EnsureParentData<T> = NonNullable<T> extends never ? {} : T;
14
- type PageParentData = Omit<
15
- EnsureParentData<import('../../$types.js').LayoutData>,
16
- keyof import('../$types.js').LayoutData
17
- > &
18
- EnsureParentData<import('../$types.js').LayoutData>;
19
-
20
- export type PageServerData = null;
21
- export type PageLoad<
22
- OutputData extends OutputDataShape<PageParentData> = OutputDataShape<PageParentData>
23
- > = Kit.Load<RouteParams, PageServerData, PageParentData, OutputData>;
24
- export type PageLoadEvent = Parameters<PageLoad>[0];
25
- export type PageData = Omit<
26
- PageParentData,
27
- keyof Kit.AwaitedProperties<
28
- Awaited<ReturnType<typeof import('../../../../../../../../../../(main)/sub/+page.js').load>>
29
- >
30
- > &
31
- Kit.AwaitedProperties<
32
- Awaited<ReturnType<typeof import('../../../../../../../../../../(main)/sub/+page.js').load>>
33
- >;
@@ -1,5 +0,0 @@
1
- export function load() {
2
- return {
3
- shared: 'shared'
4
- };
5
- }
@@ -1,5 +0,0 @@
1
- export function load() {
2
- return {
3
- server: 'server'
4
- };
5
- }
@@ -1,44 +0,0 @@
1
- import type * as Kit from '@sveltejs/kit';
2
-
3
- type RouteParams = {};
4
- type MaybeWithVoid<T> = {} extends T ? T | void : T;
5
- export type RequiredKeys<T> = {
6
- [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K;
7
- }[keyof T];
8
- type OutputDataShape<T> = MaybeWithVoid<
9
- Omit<App.PageData, RequiredKeys<T>> &
10
- Partial<Pick<App.PageData, keyof T & keyof App.PageData>> &
11
- Record<string, any>
12
- >;
13
- type EnsureParentData<T> = NonNullable<T> extends never ? {} : T;
14
- type PageServerParentData = EnsureParentData<LayoutServerData>;
15
- type PageParentData = EnsureParentData<LayoutData>;
16
- type LayoutParams = RouteParams & {};
17
- type LayoutParentData = EnsureParentData<{}>;
18
-
19
- export type PageServerLoad<
20
- OutputData extends (Partial<App.PageData> & Record<string, any>) | void =
21
- | (Partial<App.PageData> & Record<string, any>)
22
- | void
23
- > = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData>;
24
- export type PageServerLoadEvent = Parameters<PageServerLoad>[0];
25
- export type Errors = null;
26
- export type PageServerData = Kit.AwaitedProperties<
27
- Awaited<ReturnType<typeof import('../../../../../../../../+page.server.js').load>>
28
- >;
29
- export type PageLoad<
30
- OutputData extends OutputDataShape<PageParentData> = OutputDataShape<PageParentData>
31
- > = Kit.Load<RouteParams, PageServerData, PageParentData, OutputData>;
32
- export type PageLoadEvent = Parameters<PageLoad>[0];
33
- export type PageData = Omit<
34
- PageParentData,
35
- keyof Kit.AwaitedProperties<
36
- Awaited<ReturnType<typeof import('../../../../../../../../+page.js').load>>
37
- >
38
- > &
39
- Kit.AwaitedProperties<
40
- Awaited<ReturnType<typeof import('../../../../../../../../+page.js').load>>
41
- >;
42
- export type Action = Kit.Action<RouteParams>;
43
- export type LayoutServerData = null;
44
- export type LayoutData = LayoutParentData;
@@ -1,5 +0,0 @@
1
- export function load() {
2
- return {
3
- foo: 'bar'
4
- };
5
- }
@@ -1,30 +0,0 @@
1
- import type * as Kit from '@sveltejs/kit';
2
-
3
- type RouteParams = {};
4
- type MaybeWithVoid<T> = {} extends T ? T | void : T;
5
- export type RequiredKeys<T> = {
6
- [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K;
7
- }[keyof T];
8
- type OutputDataShape<T> = MaybeWithVoid<
9
- Omit<App.PageData, RequiredKeys<T>> &
10
- Partial<Pick<App.PageData, keyof T & keyof App.PageData>> &
11
- Record<string, any>
12
- >;
13
- type EnsureParentData<T> = NonNullable<T> extends never ? {} : T;
14
- type PageServerParentData = EnsureParentData<LayoutServerData>;
15
- type PageParentData = EnsureParentData<LayoutData>;
16
- type LayoutParams = RouteParams & {};
17
- type LayoutParentData = EnsureParentData<{}>;
18
-
19
- export type PageServerLoad<
20
- OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>
21
- > = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData>;
22
- export type PageServerLoadEvent = Parameters<PageServerLoad>[0];
23
- export type Errors = null;
24
- export type PageServerData = Kit.AwaitedProperties<
25
- Awaited<ReturnType<typeof import('../../../../../../../../+page.server.js').load>>
26
- >;
27
- export type PageData = Omit<PageParentData, keyof PageServerData> & PageServerData;
28
- export type Action = Kit.Action<RouteParams>;
29
- export type LayoutServerData = null;
30
- export type LayoutData = LayoutParentData;
@@ -1,5 +0,0 @@
1
- export function load() {
2
- return {
3
- shared: 'shared'
4
- };
5
- }
@@ -1,33 +0,0 @@
1
- import type * as Kit from '@sveltejs/kit';
2
-
3
- type RouteParams = {};
4
- type MaybeWithVoid<T> = {} extends T ? T | void : T;
5
- export type RequiredKeys<T> = {
6
- [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K;
7
- }[keyof T];
8
- type OutputDataShape<T> = MaybeWithVoid<
9
- Omit<App.PageData, RequiredKeys<T>> &
10
- Partial<Pick<App.PageData, keyof T & keyof App.PageData>> &
11
- Record<string, any>
12
- >;
13
- type EnsureParentData<T> = NonNullable<T> extends never ? {} : T;
14
- type PageParentData = EnsureParentData<LayoutData>;
15
- type LayoutParams = RouteParams & {};
16
- type LayoutParentData = EnsureParentData<{}>;
17
-
18
- export type PageServerData = null;
19
- export type PageLoad<
20
- OutputData extends OutputDataShape<PageParentData> = OutputDataShape<PageParentData>
21
- > = Kit.Load<RouteParams, PageServerData, PageParentData, OutputData>;
22
- export type PageLoadEvent = Parameters<PageLoad>[0];
23
- export type PageData = Omit<
24
- PageParentData,
25
- keyof Kit.AwaitedProperties<
26
- Awaited<ReturnType<typeof import('../../../../../../../../+page.js').load>>
27
- >
28
- > &
29
- Kit.AwaitedProperties<
30
- Awaited<ReturnType<typeof import('../../../../../../../../+page.js').load>>
31
- >;
32
- export type LayoutServerData = null;
33
- export type LayoutData = LayoutParentData;
@@ -1 +0,0 @@
1
- export function load() {}
@@ -1 +0,0 @@
1
- export function load() {}
@@ -1,3 +0,0 @@
1
- export function load() {
2
- return { rest: 'rest' };
3
- }
@@ -1,3 +0,0 @@
1
- export function load() {
2
- return { slug: 'slug' };
3
- }
@@ -1,32 +0,0 @@
1
- import type * as Kit from '@sveltejs/kit';
2
-
3
- type RouteParams = {};
4
- type MaybeWithVoid<T> = {} extends T ? T | void : T;
5
- export type RequiredKeys<T> = {
6
- [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K;
7
- }[keyof T];
8
- type OutputDataShape<T> = MaybeWithVoid<
9
- Omit<App.PageData, RequiredKeys<T>> &
10
- Partial<Pick<App.PageData, keyof T & keyof App.PageData>> &
11
- Record<string, any>
12
- >;
13
- type EnsureParentData<T> = NonNullable<T> extends never ? {} : T;
14
- type LayoutParams = RouteParams & { rest?: string; slug?: string };
15
- type LayoutParentData = EnsureParentData<{}>;
16
-
17
- export type LayoutServerData = null;
18
- export type LayoutLoad<
19
- OutputData extends (Partial<App.PageData> & Record<string, any>) | void =
20
- | (Partial<App.PageData> & Record<string, any>)
21
- | void
22
- > = Kit.Load<LayoutParams, LayoutServerData, LayoutParentData, OutputData>;
23
- export type LayoutLoadEvent = Parameters<LayoutLoad>[0];
24
- export type LayoutData = Omit<
25
- LayoutParentData,
26
- keyof Kit.AwaitedProperties<
27
- Awaited<ReturnType<typeof import('../../../../../../../../+layout.js').load>>
28
- >
29
- > &
30
- Kit.AwaitedProperties<
31
- Awaited<ReturnType<typeof import('../../../../../../../../+layout.js').load>>
32
- >;
@@ -1,29 +0,0 @@
1
- import type * as Kit from '@sveltejs/kit';
2
-
3
- type RouteParams = { rest: string };
4
- type MaybeWithVoid<T> = {} extends T ? T | void : T;
5
- export type RequiredKeys<T> = {
6
- [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K;
7
- }[keyof T];
8
- type OutputDataShape<T> = MaybeWithVoid<
9
- Omit<App.PageData, RequiredKeys<T>> &
10
- Partial<Pick<App.PageData, keyof T & keyof App.PageData>> &
11
- Record<string, any>
12
- >;
13
- type EnsureParentData<T> = NonNullable<T> extends never ? {} : T;
14
- type PageParentData = EnsureParentData<import('../$types.js').LayoutData>;
15
-
16
- export type PageServerData = null;
17
- export type PageLoad<
18
- OutputData extends OutputDataShape<PageParentData> = OutputDataShape<PageParentData>
19
- > = Kit.Load<RouteParams, PageServerData, PageParentData, OutputData>;
20
- export type PageLoadEvent = Parameters<PageLoad>[0];
21
- export type PageData = Omit<
22
- PageParentData,
23
- keyof Kit.AwaitedProperties<
24
- Awaited<ReturnType<typeof import('../../../../../../../../../[...rest]/+page.js').load>>
25
- >
26
- > &
27
- Kit.AwaitedProperties<
28
- Awaited<ReturnType<typeof import('../../../../../../../../../[...rest]/+page.js').load>>
29
- >;
@@ -1,29 +0,0 @@
1
- import type * as Kit from '@sveltejs/kit';
2
-
3
- type RouteParams = { slug: string };
4
- type MaybeWithVoid<T> = {} extends T ? T | void : T;
5
- export type RequiredKeys<T> = {
6
- [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K;
7
- }[keyof T];
8
- type OutputDataShape<T> = MaybeWithVoid<
9
- Omit<App.PageData, RequiredKeys<T>> &
10
- Partial<Pick<App.PageData, keyof T & keyof App.PageData>> &
11
- Record<string, any>
12
- >;
13
- type EnsureParentData<T> = NonNullable<T> extends never ? {} : T;
14
- type PageParentData = EnsureParentData<import('../$types.js').LayoutData>;
15
-
16
- export type PageServerData = null;
17
- export type PageLoad<
18
- OutputData extends OutputDataShape<PageParentData> = OutputDataShape<PageParentData>
19
- > = Kit.Load<RouteParams, PageServerData, PageParentData, OutputData>;
20
- export type PageLoadEvent = Parameters<PageLoad>[0];
21
- export type PageData = Omit<
22
- PageParentData,
23
- keyof Kit.AwaitedProperties<
24
- Awaited<ReturnType<typeof import('../../../../../../../../../[slug]/+page.js').load>>
25
- >
26
- > &
27
- Kit.AwaitedProperties<
28
- Awaited<ReturnType<typeof import('../../../../../../../../../[slug]/+page.js').load>>
29
- >;
@@ -1,30 +0,0 @@
1
- import type * as Kit from '@sveltejs/kit';
2
-
3
- type RouteParams = {};
4
- type MaybeWithVoid<T> = {} extends T ? T | void : T;
5
- export type RequiredKeys<T> = {
6
- [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K;
7
- }[keyof T];
8
- type OutputDataShape<T> = MaybeWithVoid<
9
- Omit<App.PageData, RequiredKeys<T>> &
10
- Partial<Pick<App.PageData, keyof T & keyof App.PageData>> &
11
- Record<string, any>
12
- >;
13
- type EnsureParentData<T> = NonNullable<T> extends never ? {} : T;
14
- type LayoutParams = RouteParams & { rest?: string; slug?: string };
15
- type LayoutParentData = EnsureParentData<{}>;
16
-
17
- export type LayoutServerData = null;
18
- export type LayoutLoad<
19
- OutputData extends OutputDataShape<LayoutParentData> = OutputDataShape<LayoutParentData>
20
- > = Kit.Load<LayoutParams, LayoutServerData, LayoutParentData, OutputData>;
21
- export type LayoutLoadEvent = Parameters<LayoutLoad>[0];
22
- export type LayoutData = Omit<
23
- LayoutParentData,
24
- keyof Kit.AwaitedProperties<
25
- Awaited<ReturnType<typeof import('../../../../../../../../+layout.js').load>>
26
- >
27
- > &
28
- Kit.AwaitedProperties<
29
- Awaited<ReturnType<typeof import('../../../../../../../../+layout.js').load>>
30
- >;
@@ -1,32 +0,0 @@
1
- import type * as Kit from '@sveltejs/kit';
2
-
3
- type RouteParams = {};
4
- type MaybeWithVoid<T> = {} extends T ? T | void : T;
5
- export type RequiredKeys<T> = {
6
- [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K;
7
- }[keyof T];
8
- type OutputDataShape<T> = MaybeWithVoid<
9
- Omit<App.PageData, RequiredKeys<T>> &
10
- Partial<Pick<App.PageData, keyof T & keyof App.PageData>> &
11
- Record<string, any>
12
- >;
13
- type EnsureParentData<T> = NonNullable<T> extends never ? {} : T;
14
- type LayoutParams = RouteParams & { rest?: string };
15
- type LayoutParentData = EnsureParentData<import('../$types.js').LayoutData>;
16
-
17
- export type LayoutServerData = null;
18
- export type LayoutLoad<
19
- OutputData extends (Partial<App.PageData> & Record<string, any>) | void =
20
- | (Partial<App.PageData> & Record<string, any>)
21
- | void
22
- > = Kit.Load<LayoutParams, LayoutServerData, LayoutParentData, OutputData>;
23
- export type LayoutLoadEvent = Parameters<LayoutLoad>[0];
24
- export type LayoutData = Omit<
25
- LayoutParentData,
26
- keyof Kit.AwaitedProperties<
27
- Awaited<ReturnType<typeof import('../../../../../../../../../nested/+layout.js').load>>
28
- >
29
- > &
30
- Kit.AwaitedProperties<
31
- Awaited<ReturnType<typeof import('../../../../../../../../../nested/+layout.js').load>>
32
- >;
@@ -1,37 +0,0 @@
1
- import type * as Kit from '@sveltejs/kit';
2
-
3
- type RouteParams = { rest: string };
4
- type MaybeWithVoid<T> = {} extends T ? T | void : T;
5
- export type RequiredKeys<T> = {
6
- [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K;
7
- }[keyof T];
8
- type OutputDataShape<T> = MaybeWithVoid<
9
- Omit<App.PageData, RequiredKeys<T>> &
10
- Partial<Pick<App.PageData, keyof T & keyof App.PageData>> &
11
- Record<string, any>
12
- >;
13
- type EnsureParentData<T> = NonNullable<T> extends never ? {} : T;
14
- type PageParentData = Omit<
15
- EnsureParentData<import('../../$types.js').LayoutData>,
16
- keyof import('../$types.js').LayoutData
17
- > &
18
- EnsureParentData<import('../$types.js').LayoutData>;
19
-
20
- export type PageServerData = null;
21
- export type PageLoad<
22
- OutputData extends OutputDataShape<PageParentData> = OutputDataShape<PageParentData>
23
- > = Kit.Load<RouteParams, PageServerData, PageParentData, OutputData>;
24
- export type PageLoadEvent = Parameters<PageLoad>[0];
25
- export type PageData = Omit<
26
- PageParentData,
27
- keyof Kit.AwaitedProperties<
28
- Awaited<
29
- ReturnType<typeof import('../../../../../../../../../../nested/[...rest]/+page.js').load>
30
- >
31
- >
32
- > &
33
- Kit.AwaitedProperties<
34
- Awaited<
35
- ReturnType<typeof import('../../../../../../../../../../nested/[...rest]/+page.js').load>
36
- >
37
- >;
@@ -1,17 +0,0 @@
1
- import type * as Kit from '@sveltejs/kit';
2
-
3
- type RouteParams = { slug: string };
4
- type MaybeWithVoid<T> = {} extends T ? T | void : T;
5
- export type RequiredKeys<T> = {
6
- [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K;
7
- }[keyof T];
8
- type OutputDataShape<T> = MaybeWithVoid<
9
- Omit<App.PageData, RequiredKeys<T>> &
10
- Partial<Pick<App.PageData, keyof T & keyof App.PageData>> &
11
- Record<string, any>
12
- >;
13
- type EnsureParentData<T> = NonNullable<T> extends never ? {} : T;
14
- type PageParentData = EnsureParentData<import('../../$types.js').LayoutData>;
15
-
16
- export type PageServerData = null;
17
- export type PageData = PageParentData;
@@ -1,3 +0,0 @@
1
- export function load() {
2
- return { rest: 'rest' };
3
- }