Skip to content

Commit 12e5fe9

Browse files
committed
build
1 parent 4e7279a commit 12e5fe9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/svelte/types/index.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,10 @@ declare module 'svelte' {
369369
* Create a snippet imperatively using mount, hyrdate and render functions.
370370
* */
371371
export function createRawSnippet<Params extends unknown[]>({ mount, hydrate }: {
372-
mount: (...params: LazyParams<Params>) => Element;
373-
hydrate?: (element: Element, ...params: LazyParams<Params>) => void;
372+
mount: (...params: Getters<Params>) => Element;
373+
hydrate?: (element: Element, ...params: Getters<Params>) => void;
374374
render: (...params: Params) => string;
375375
}): import("svelte").Snippet<Params>;
376-
type LazyParams<T> = { [K in keyof T]: () => T[K]; };
377376
/**
378377
* Mounts a component to the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component.
379378
* Transitions will play during the initial render unless the `intro` option is set to `false`.
@@ -459,6 +458,9 @@ declare module 'svelte' {
459458
* https://svelte.dev/docs/svelte#getallcontexts
460459
* */
461460
export function getAllContexts<T extends Map<any, any> = Map<any, any>>(): T;
461+
type Getters<T> = {
462+
[K in keyof T]: () => T[K];
463+
};
462464

463465
export { hydrate_1 as hydrate, mount_1 as mount };
464466
}

0 commit comments

Comments
 (0)