Skip to content

Commit 4702cdf

Browse files
committed
types
1 parent 1a64a18 commit 4702cdf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/kit/types/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,7 @@ declare module '@sveltejs/kit' {
19551955
* Checks whether this is an error thrown by {@link error}.
19561956
* @param status The status to filter for.
19571957
* */
1958-
export function isHttpError<T extends number>(e: unknown, status?: T | undefined): e is (HttpError_1 & {
1958+
export function isHttpError<T extends number>(e: unknown, status?: T): e is (HttpError_1 & {
19591959
status: T extends undefined ? never : T;
19601960
});
19611961
/**
@@ -1985,13 +1985,13 @@ declare module '@sveltejs/kit' {
19851985
* @param data The value that will be serialized as JSON.
19861986
* @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.
19871987
*/
1988-
export function json(data: any, init?: ResponseInit | undefined): Response;
1988+
export function json(data: any, init?: ResponseInit): Response;
19891989
/**
19901990
* Create a `Response` object from the supplied body.
19911991
* @param body The value that will be used as-is.
19921992
* @param init Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.
19931993
*/
1994-
export function text(body: string, init?: ResponseInit | undefined): Response;
1994+
export function text(body: string, init?: ResponseInit): Response;
19951995
/**
19961996
* Create an `ActionFailure` object. Call when form submission fails.
19971997
* @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.
@@ -2290,7 +2290,7 @@ declare module '$app/navigation' {
22902290
invalidateAll?: boolean | undefined;
22912291
invalidate?: (string | URL | ((url: URL) => boolean))[] | undefined;
22922292
state?: App.PageState | undefined;
2293-
} | undefined): Promise<void>;
2293+
}): Promise<void>;
22942294
/**
22952295
* 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.
22962296
*

0 commit comments

Comments
 (0)