Skip to content

Commit fc11907

Browse files
committed
Merge branch 'init-hook' of github.com:paoloricciuti/kit into pr/13103
2 parents bacfbe7 + 43e2623 commit fc11907

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
declare module '__SERVER__/internal.js' {
22
export const options: import('types').SSROptions;
33
export const get_hooks: () => Promise<Partial<import('types').ServerHooks>>;
4+
}

packages/kit/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,12 +707,12 @@ declare module '@sveltejs/kit' {
707707
}) => MaybePromise<Response>;
708708

709709
/**
710-
* The [`init`](https://svelte.dev/docs/kit/hooks#Shared-hooks-init) will be invoked once as soon as the server is executed.
710+
* The [`init`](https://svelte.dev/docs/kit/hooks#Shared-hooks-init) will be invoked before the server responds to its first request
711711
*/
712712
export type ServerInit = () => MaybePromise<void>;
713713

714714
/**
715-
* The [`init`](https://svelte.dev/docs/kit/hooks#Shared-hooks-init) will be invoked once as the client side app is started.
715+
* The [`init`](https://svelte.dev/docs/kit/hooks#Shared-hooks-init) will be invoked once the app starts in the browser
716716
*/
717717
export type ClientInit = () => MaybePromise<void>;
718718

0 commit comments

Comments
 (0)