Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions types/pure.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ export type Exports<C> = C extends LegacyComponent
*
* In Svelte 4, these are the options passed to the component constructor.
*/
export type MountOptions<C extends Component> = C extends LegacyComponent
? LegacyConstructorOptions<Props<C>>
: Parameters<typeof mount<Props<C>, Exports<C>>>[1];
export type MountOptions<C extends Component> = Omit<
C extends LegacyComponent
? LegacyConstructorOptions<Props<C>>
: Parameters<typeof mount<Props<C>, Exports<C>>>[1],
'target'
> & { target?: Element | Document | ShadowRoot };

/**
* Customize how Svelte renders the component.
Expand Down