MountOptions Type — svelte Architecture
Architecture documentation for the MountOptions type/interface in index.d.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 3bedc223_a9e9_267d_8f33_48aaa8109e8b["MountOptions"] 6bd9d090_a582_e05c_669e_d53d4e7245f2["index.d.ts"] 3bedc223_a9e9_267d_8f33_48aaa8109e8b -->|defined in| 6bd9d090_a582_e05c_669e_d53d4e7245f2 style 3bedc223_a9e9_267d_8f33_48aaa8109e8b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/types/index.d.ts lines 317–352
export type MountOptions<Props extends Record<string, any> = Record<string, any>> = {
/**
* Target element where the component will be mounted.
*/
target: Document | Element | ShadowRoot;
/**
* Optional node inside `target`. When specified, it is used to render the component immediately before it.
*/
anchor?: Node;
/**
* Allows the specification of events.
* @deprecated Use callback props instead.
*/
events?: Record<string, (e: any) => any>;
/**
* Can be accessed via `getContext()` at the component level.
*/
context?: Map<any, any>;
/**
* Whether or not to play transitions on initial render.
* @default true
*/
intro?: boolean;
} & ({} extends Props
? {
/**
* Component properties.
*/
props?: Props;
}
: {
/**
* Component properties.
*/
props: Props;
});
Defined In
Source
Frequently Asked Questions
What is the MountOptions type?
MountOptions is a type/interface in the svelte codebase, defined in packages/svelte/types/index.d.ts.
Where is MountOptions defined?
MountOptions is defined in packages/svelte/types/index.d.ts at line 317.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free