@@ -366,19 +366,18 @@ declare module 'svelte' {
366
366
/** Anything except a function */
367
367
type NotFunction < T > = T extends Function ? never : T ;
368
368
/**
369
- * Create a snippet imperatively using mount, hydrate and render functions.
369
+ * Create a snippet programmatically
370
370
* */
371
- export function createRawSnippet < Params extends unknown [ ] > ( { mount, hydrate } : {
372
- mount ?: ( ...params : Getters < Params > ) => Element ;
373
- hydrate ?: ( element : Element , ...params : Getters < Params > ) => void ;
374
- render ?: ( ...params : Params ) => string ;
371
+ export function createRawSnippet < Params extends unknown [ ] > ( { render, update } : {
372
+ render : ( ...params : Params ) => string ;
373
+ update ?: ( element : Element , ...params : Getters < Params > ) => void ;
375
374
} ) : import ( "svelte" ) . Snippet < Params > ;
376
375
/**
377
376
* Mounts a component to the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component.
378
377
* Transitions will play during the initial render unless the `intro` option is set to `false`.
379
378
*
380
379
* */
381
- function mount_1 < Props extends Record < string , any > , Exports extends Record < string , any > > ( component : ComponentType < SvelteComponent < Props > > | Component < Props , Exports , any > , options : { } extends Props ? {
380
+ export function mount < Props extends Record < string , any > , Exports extends Record < string , any > > ( component : ComponentType < SvelteComponent < Props > > | Component < Props , Exports , any > , options : { } extends Props ? {
382
381
target : Document | Element | ShadowRoot ;
383
382
anchor ?: Node ;
384
383
props ?: Props ;
@@ -397,7 +396,7 @@ declare module 'svelte' {
397
396
* Hydrates a component on the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component
398
397
*
399
398
* */
400
- function hydrate_1 < Props extends Record < string , any > , Exports extends Record < string , any > > ( component : ComponentType < SvelteComponent < Props > > | Component < Props , Exports , any > , options : { } extends Props ? {
399
+ export function hydrate < Props extends Record < string , any > , Exports extends Record < string , any > > ( component : ComponentType < SvelteComponent < Props > > | Component < Props , Exports , any > , options : { } extends Props ? {
401
400
target : Document | Element | ShadowRoot ;
402
401
props ?: Props ;
403
402
events ?: Record < string , ( e : any ) => any > ;
@@ -462,7 +461,7 @@ declare module 'svelte' {
462
461
[ K in keyof T ] : ( ) => T [ K ] ;
463
462
} ;
464
463
465
- export { hydrate_1 as hydrate , mount_1 as mount } ;
464
+ export { } ;
466
465
}
467
466
468
467
declare module 'svelte/action' {
0 commit comments