File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -369,11 +369,10 @@ declare module 'svelte' {
369
369
* Create a snippet imperatively using mount, hyrdate and render functions.
370
370
* */
371
371
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 ;
374
374
render : ( ...params : Params ) => string ;
375
375
} ) : import ( "svelte" ) . Snippet < Params > ;
376
- type LazyParams < T > = { [ K in keyof T ] : ( ) => T [ K ] ; } ;
377
376
/**
378
377
* Mounts a component to the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component.
379
378
* Transitions will play during the initial render unless the `intro` option is set to `false`.
@@ -459,6 +458,9 @@ declare module 'svelte' {
459
458
* https://svelte.dev/docs/svelte#getallcontexts
460
459
* */
461
460
export function getAllContexts < T extends Map < any , any > = Map < any , any > > ( ) : T ;
461
+ type Getters < T > = {
462
+ [ K in keyof T ] : ( ) => T [ K ] ;
463
+ } ;
462
464
463
465
export { hydrate_1 as hydrate , mount_1 as mount } ;
464
466
}
You can’t perform that action at this time.
0 commit comments