Skip to content
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
77 changes: 41 additions & 36 deletions apps/svelte.dev/content/docs/kit/98-reference/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ title: @sveltejs/kit
```js
// @noErrors
import {
Server,
VERSION,
error,
fail,
Expand All @@ -19,6 +20,43 @@ import {
} from '@sveltejs/kit';
```

## Server

<div class="ts-block">

```dts
class Server {/*…*/}
```

<div class="ts-block-property">

```dts
constructor(manifest: SSRManifest);
```

<div class="ts-block-property-details"></div>
</div>

<div class="ts-block-property">

```dts
init(options: ServerInitOptions): Promise<void>;
```

<div class="ts-block-property-details"></div>
</div>

<div class="ts-block-property">

```dts
respond(request: Request, options: RequestOptions): Promise<Response>;
```

<div class="ts-block-property-details"></div>
</div></div>



## VERSION

<div class="ts-block">
Expand Down Expand Up @@ -94,7 +132,9 @@ Checks whether this is an action failure thrown by `fail`.
<div class="ts-block">

```dts
function isActionFailure(e: unknown): e is ActionFailure;
function isActionFailure(
e: unknown
): e is ActionFailure<undefined>;
```

</div>
Expand Down Expand Up @@ -2303,41 +2343,6 @@ A `[file]: size` map of all assets imported by server code
</div>
</div></div>

## Server

<div class="ts-block">

```dts
class Server {/*…*/}
```

<div class="ts-block-property">

```dts
constructor(manifest: SSRManifest);
```

<div class="ts-block-property-details"></div>
</div>

<div class="ts-block-property">

```dts
init(options: ServerInitOptions): Promise<void>;
```

<div class="ts-block-property-details"></div>
</div>

<div class="ts-block-property">

```dts
respond(request: Request, options: RequestOptions): Promise<Response>;
```

<div class="ts-block-property-details"></div>
</div></div>

## ServerInitOptions

<div class="ts-block">
Expand Down
Loading
Loading