@@ -379,44 +379,26 @@ declare module 'svelte' {
379379 } ) : Snippet < Params > ;
380380 /** Anything except a function */
381381 type NotFunction < T > = T extends Function ? never : T ;
382- export type MountOptions < Props extends Record < string , any > = Record < string , any > > = {
383- /**
384- * Target element where the component will be mounted.
385- */
382+ /**
383+ * Mounts a component to the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component.
384+ * Transitions will play during the initial render unless the `intro` option is set to `false`.
385+ *
386+ * */
387+ export function mount < Props extends Record < string , any > , Exports extends Record < string , any > > ( component : ComponentType < SvelteComponent < Props > > | Component < Props , Exports , any > , options : { } extends Props ? {
386388 target : Document | Element | ShadowRoot ;
387- /**
388- * Optional node inside `target` and when specified, it is used to render the component immediately before it.
389- */
390389 anchor ?: Node ;
391- /**
392- * Allows the specification of events.
393- */
390+ props ?: Props ;
394391 events ?: Record < string , ( e : any ) => any > ;
395- /**
396- * Used to define context at the component level.
397- */
398392 context ?: Map < any , any > ;
399- /**
400- * Used to control transition playback on initial render. The default value is `true` to run transitions.
401- */
402393 intro ?: boolean ;
403- } & { } extends Props ? {
404- /**
405- * Component properties.
406- */
407- props ?: Props ;
408394 } : {
409- /**
410- * Component properties.
411- */
395+ target : Document | Element | ShadowRoot ;
412396 props : Props ;
413- }
414- /**
415- * Mounts a component to the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component.
416- * Transitions will play during the initial render unless the `intro` option is set to `false`.
417- *
418- * */
419- export function mount < Props extends Record < string , any > , Exports extends Record < string , any > > ( component : ComponentType < SvelteComponent < Props > > | Component < Props , Exports , any > , options : MountOptions < Props > ) : Exports ;
397+ anchor ?: Node ;
398+ events ?: Record < string , ( e : any ) => any > ;
399+ context ?: Map < any , any > ;
400+ intro ?: boolean ;
401+ } ) : Exports ;
420402 /**
421403 * Hydrates a component on the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component
422404 *
0 commit comments