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
2 changes: 2 additions & 0 deletions packages/kit/src/exports/public.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -726,11 +726,13 @@ export type HandleFetch = (input: {

/**
* The [`init`](https://svelte.dev/docs/kit/hooks#Shared-hooks-init) will be invoked before the server responds to its first request
* @since 2.10.0
*/
export type ServerInit = () => MaybePromise<void>;

/**
* The [`init`](https://svelte.dev/docs/kit/hooks#Shared-hooks-init) will be invoked once the app starts in the browser
* @since 2.10.0
*/
export type ClientInit = () => MaybePromise<void>;

Expand Down
2 changes: 2 additions & 0 deletions packages/kit/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -708,11 +708,13 @@ declare module '@sveltejs/kit' {

/**
* The [`init`](https://svelte.dev/docs/kit/hooks#Shared-hooks-init) will be invoked before the server responds to its first request
* @since 2.10.0
*/
export type ServerInit = () => MaybePromise<void>;

/**
* The [`init`](https://svelte.dev/docs/kit/hooks#Shared-hooks-init) will be invoked once the app starts in the browser
* @since 2.10.0
*/
export type ClientInit = () => MaybePromise<void>;

Expand Down
Loading