Skip to content

Commit 33600ee

Browse files
authored
docs: note when init hook was added (#13138)
* docs: note when `init` hook was added * add `@since` tags * on second thoughts, just use the tags
1 parent 07e346a commit 33600ee

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/kit/src/exports/public.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,11 +726,13 @@ export type HandleFetch = (input: {
726726

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

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

packages/kit/types/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,11 +708,13 @@ declare module '@sveltejs/kit' {
708708

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

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

0 commit comments

Comments
 (0)