Home / Type/ MountOptions Type — svelte Architecture

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
  ec8eb49d_4c8c_3525_b161_0c964cdfa2fa["MountOptions"]
  d5f75cc7_4dc4_5b53_55c5_43ee635d6602["index.d.ts"]
  ec8eb49d_4c8c_3525_b161_0c964cdfa2fa -->|defined in| d5f75cc7_4dc4_5b53_55c5_43ee635d6602
  style ec8eb49d_4c8c_3525_b161_0c964cdfa2fa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/index.d.ts lines 318–353

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;
		});

Frequently Asked Questions

What is the MountOptions type?
MountOptions is a type/interface in the svelte codebase, defined in packages/svelte/src/index.d.ts.
Where is MountOptions defined?
MountOptions is defined in packages/svelte/src/index.d.ts at line 318.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free