Skip to content

Commit 955418f

Browse files
committed
clarify
1 parent 1f00492 commit 955418f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

packages/kit/src/exports/public.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ export interface NavigationTarget {
10261026

10271027
/**
10281028
* - `enter`: The app has hydrated/started
1029-
* - `form`: The user submitted a `<form>` with a GET method
1029+
* - `form`: The user submitted a `<form method="GET">`
10301030
* - `leave`: The app is being left either because the tab is being closed or a navigation to a different document is occurring
10311031
* - `link`: Navigation was triggered by a link click
10321032
* - `goto`: Navigation was triggered by a `goto(...)` call or a redirect
@@ -1045,7 +1045,7 @@ export interface Navigation {
10451045
to: NavigationTarget | null;
10461046
/**
10471047
* The type of navigation:
1048-
* - `form`: The user submitted a `<form>` with a GET method
1048+
* - `form`: The user submitted a `<form method="GET">`
10491049
* - `leave`: The app is being left either because the tab is being closed or a navigation to a different document is occurring
10501050
* - `link`: Navigation was triggered by a link click
10511051
* - `goto`: Navigation was triggered by a `goto(...)` call or a redirect
@@ -1083,7 +1083,7 @@ export interface BeforeNavigate extends Navigation {
10831083
export interface OnNavigate extends Navigation {
10841084
/**
10851085
* The type of navigation:
1086-
* - `form`: The user submitted a `<form>` with a GET method
1086+
* - `form`: The user submitted a `<form method="GET">`
10871087
* - `link`: Navigation was triggered by a link click
10881088
* - `goto`: Navigation was triggered by a `goto(...)` call or a redirect
10891089
* - `popstate`: Navigation was triggered by back/forward navigation
@@ -1102,7 +1102,7 @@ export interface AfterNavigate extends Omit<Navigation, 'type'> {
11021102
/**
11031103
* The type of navigation:
11041104
* - `enter`: The app has hydrated/started
1105-
* - `form`: The user submitted a `<form>` with a GET method
1105+
* - `form`: The user submitted a `<form method="GET">`
11061106
* - `link`: Navigation was triggered by a link click
11071107
* - `goto`: Navigation was triggered by a `goto(...)` call or a redirect
11081108
* - `popstate`: Navigation was triggered by back/forward navigation

packages/kit/types/index.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)