Skip to content

Sync kit docs #1424

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions apps/svelte.dev/content/docs/kit/98-reference/10-@sveltejs-kit.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Checks whether this is an error thrown by `error`.
```dts
function isHttpError<T extends number>(
e: unknown,
status?: T
status?: T | undefined
): e is HttpError_1 & {
status: T extends undefined ? never : T;
};
Expand Down Expand Up @@ -181,7 +181,10 @@ Create a JSON `Response` object from the supplied data.
<div class="ts-block">

```dts
function json(data: any, init?: ResponseInit): Response;
function json(
data: any,
init?: ResponseInit | undefined
): Response;
```

</div>
Expand Down Expand Up @@ -264,7 +267,10 @@ Create a `Response` object from the supplied body.
<div class="ts-block">

```dts
function text(body: string, init?: ResponseInit): Response;
function text(
body: string,
init?: ResponseInit | undefined
): Response;
```

</div>
Expand Down Expand Up @@ -2472,7 +2478,7 @@ A map of environment variables.
<div class="ts-block-property">

```dts
read?: (file: string) => ReadableStream;
read?: (file: string) => MaybePromise<ReadableStream | null>;
```

<div class="ts-block-property-details">
Expand Down
22 changes: 12 additions & 10 deletions apps/svelte.dev/content/docs/kit/98-reference/20-$app-navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,18 @@ For external URLs, use `window.location = url` instead of calling `goto(url)`.
```dts
function goto(
url: string | URL,
opts?: {
replaceState?: boolean | undefined;
noScroll?: boolean | undefined;
keepFocus?: boolean | undefined;
invalidateAll?: boolean | undefined;
invalidate?:
| (string | URL | ((url: URL) => boolean))[]
| undefined;
state?: App.PageState | undefined;
}
opts?:
| {
replaceState?: boolean | undefined;
noScroll?: boolean | undefined;
keepFocus?: boolean | undefined;
invalidateAll?: boolean | undefined;
invalidate?:
| (string | URL | ((url: URL) => boolean))[]
| undefined;
state?: App.PageState | undefined;
}
| undefined
): Promise<void>;
```

Expand Down