@@ -1008,7 +1008,7 @@ declare module '@sveltejs/kit' {
10081008
10091009 /**
10101010 * - `enter`: The app has hydrated/started
1011- * - `form`: The user submitted a `<form>` with a GET method
1011+ * - `form`: The user submitted a `<form method="GET">`
10121012 * - `leave`: The app is being left either because the tab is being closed or a navigation to a different document is occurring
10131013 * - `link`: Navigation was triggered by a link click
10141014 * - `goto`: Navigation was triggered by a `goto(...)` call or a redirect
@@ -1027,7 +1027,7 @@ declare module '@sveltejs/kit' {
10271027 to : NavigationTarget | null ;
10281028 /**
10291029 * The type of navigation:
1030- * - `form`: The user submitted a `<form>` with a GET method
1030+ * - `form`: The user submitted a `<form method="GET">`
10311031 * - `leave`: The app is being left either because the tab is being closed or a navigation to a different document is occurring
10321032 * - `link`: Navigation was triggered by a link click
10331033 * - `goto`: Navigation was triggered by a `goto(...)` call or a redirect
@@ -1065,7 +1065,7 @@ declare module '@sveltejs/kit' {
10651065 export interface OnNavigate extends Navigation {
10661066 /**
10671067 * The type of navigation:
1068- * - `form`: The user submitted a `<form>` with a GET method
1068+ * - `form`: The user submitted a `<form method="GET">`
10691069 * - `link`: Navigation was triggered by a link click
10701070 * - `goto`: Navigation was triggered by a `goto(...)` call or a redirect
10711071 * - `popstate`: Navigation was triggered by back/forward navigation
@@ -1084,7 +1084,7 @@ declare module '@sveltejs/kit' {
10841084 /**
10851085 * The type of navigation:
10861086 * - `enter`: The app has hydrated/started
1087- * - `form`: The user submitted a `<form>` with a GET method
1087+ * - `form`: The user submitted a `<form method="GET">`
10881088 * - `link`: Navigation was triggered by a link click
10891089 * - `goto`: Navigation was triggered by a `goto(...)` call or a redirect
10901090 * - `popstate`: Navigation was triggered by back/forward navigation
@@ -1963,7 +1963,7 @@ declare module '@sveltejs/kit' {
19631963 * Checks whether this is an error thrown by {@link error}.
19641964 * @param status The status to filter for.
19651965 * */
1966- export function isHttpError < T extends number > ( e : unknown , status ?: T | undefined ) : e is ( HttpError_1 & {
1966+ export function isHttpError < T extends number > ( e : unknown , status ?: T ) : e is ( HttpError_1 & {
19671967 status : T extends undefined ? never : T ;
19681968 } ) ;
19691969 /**
@@ -1993,13 +1993,13 @@ declare module '@sveltejs/kit' {
19931993 * @param data The value that will be serialized as JSON.
19941994 * @param init Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.
19951995 */
1996- export function json ( data : any , init ?: ResponseInit | undefined ) : Response ;
1996+ export function json ( data : any , init ?: ResponseInit ) : Response ;
19971997 /**
19981998 * Create a `Response` object from the supplied body.
19991999 * @param body The value that will be used as-is.
20002000 * @param init Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.
20012001 */
2002- export function text ( body : string , init ?: ResponseInit | undefined ) : Response ;
2002+ export function text ( body : string , init ?: ResponseInit ) : Response ;
20032003 /**
20042004 * Create an `ActionFailure` object.
20052005 * @param status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.
@@ -2298,7 +2298,7 @@ declare module '$app/navigation' {
22982298 invalidateAll ?: boolean | undefined ;
22992299 invalidate ?: ( string | URL | ( ( url : URL ) => boolean ) ) [ ] | undefined ;
23002300 state ?: App . PageState | undefined ;
2301- } | undefined ) : Promise < void > ;
2301+ } ) : Promise < void > ;
23022302 /**
23032303 * 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.
23042304 *
0 commit comments