Skip to content

Commit f5294ae

Browse files
committed
kit is still on ts 5.8
1 parent 9f6abfd commit f5294ae

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

packages/kit/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
"allowJs": true,
44
"checkJs": true,
55
"noEmit": true,
6+
// TODO: remove when we switch to TS 6.0
7+
"strict": true,
68
"target": "esnext",
79
"module": "nodenext",
810
"moduleResolution": "nodenext",
11+
// TODO: remove when we switch to TS 6.0
12+
"allowSyntheticDefaultImports": true,
913
"paths": {
1014
"@sveltejs/kit": ["./src/exports/public.d.ts"],
1115
"@sveltejs/kit/node": ["./src/exports/node/index.js"],

packages/kit/types/index.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2982,12 +2982,12 @@ declare module '$app/navigation' {
29822982
* @param {Object} opts Options related to the navigation
29832983
* */
29842984
export function goto(url: string | URL, opts?: {
2985-
replaceState?: boolean;
2986-
noScroll?: boolean;
2987-
keepFocus?: boolean;
2988-
invalidateAll?: boolean;
2989-
invalidate?: Array<string | URL | ((url: URL) => boolean)>;
2990-
state?: App.PageState;
2985+
replaceState?: boolean | undefined;
2986+
noScroll?: boolean | undefined;
2987+
keepFocus?: boolean | undefined;
2988+
invalidateAll?: boolean | undefined;
2989+
invalidate?: (string | URL | ((url: URL) => boolean))[] | undefined;
2990+
state?: App.PageState | undefined;
29912991
}): Promise<void>;
29922992
/**
29932993
* Causes any `load` functions belonging to the currently active page to re-run if they depend on the `url` in question, via `fetch` or `depends`. Returns a `Promise` that resolves when the page is subsequently updated.
@@ -3251,7 +3251,7 @@ declare module '$app/server' {
32513251
export function prerender<Output>(fn: () => MaybePromise<Output>, options?: {
32523252
inputs?: RemotePrerenderInputsGenerator<void>;
32533253
dynamic?: boolean;
3254-
}): RemotePrerenderFunction<void, Output>;
3254+
} | undefined): RemotePrerenderFunction<void, Output>;
32553255
/**
32563256
* Creates a remote prerender function. When called from the browser, the function will be invoked on the server via a `fetch` call.
32573257
*
@@ -3262,7 +3262,7 @@ declare module '$app/server' {
32623262
export function prerender<Input, Output>(validate: "unchecked", fn: (arg: Input) => MaybePromise<Output>, options?: {
32633263
inputs?: RemotePrerenderInputsGenerator<Input>;
32643264
dynamic?: boolean;
3265-
}): RemotePrerenderFunction<Input, Output>;
3265+
} | undefined): RemotePrerenderFunction<Input, Output>;
32663266
/**
32673267
* Creates a remote prerender function. When called from the browser, the function will be invoked on the server via a `fetch` call.
32683268
*
@@ -3273,7 +3273,7 @@ declare module '$app/server' {
32733273
export function prerender<Schema extends StandardSchemaV1, Output>(schema: Schema, fn: (arg: StandardSchemaV1.InferOutput<Schema>) => MaybePromise<Output>, options?: {
32743274
inputs?: RemotePrerenderInputsGenerator<StandardSchemaV1.InferInput<Schema>>;
32753275
dynamic?: boolean;
3276-
}): RemotePrerenderFunction<StandardSchemaV1.InferInput<Schema>, Output>;
3276+
} | undefined): RemotePrerenderFunction<StandardSchemaV1.InferInput<Schema>, Output>;
32773277
/**
32783278
* Creates a remote query. When called from the browser, the function will be invoked on the server via a `fetch` call.
32793279
*

0 commit comments

Comments
 (0)