Home / Type/ ComponentType Type — svelte Architecture

ComponentType Type — svelte Architecture

Architecture documentation for the ComponentType type/interface in index.d.ts from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  2d62bcdd_786c_2202_6043_5d5e72cd87d0["ComponentType"]
  6bd9d090_a582_e05c_669e_d53d4e7245f2["index.d.ts"]
  2d62bcdd_786c_2202_6043_5d5e72cd87d0 -->|defined in| 6bd9d090_a582_e05c_669e_d53d4e7245f2
  style 2d62bcdd_786c_2202_6043_5d5e72cd87d0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/types/index.d.ts lines 262–269

	export type ComponentType<Comp extends SvelteComponent = SvelteComponent> = (new (
		options: ComponentConstructorOptions<
			Comp extends SvelteComponent<infer Props> ? Props : Record<string, any>
		>
	) => Comp) & {
		/** The custom element version of the component. Only present if compiled with the `customElement` compiler option */
		element?: typeof HTMLElement;
	};

Frequently Asked Questions

What is the ComponentType type?
ComponentType is a type/interface in the svelte codebase, defined in packages/svelte/types/index.d.ts.
Where is ComponentType defined?
ComponentType is defined in packages/svelte/types/index.d.ts at line 262.

Analyze Your Own Codebase

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

Try Supermodel Free