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 02e6c6f1_60ec_095c_3058_8a0714559731["ComponentType"] d5f75cc7_4dc4_5b53_55c5_43ee635d6602["index.d.ts"] 02e6c6f1_60ec_095c_3058_8a0714559731 -->|defined in| d5f75cc7_4dc4_5b53_55c5_43ee635d6602 style 02e6c6f1_60ec_095c_3058_8a0714559731 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/index.d.ts lines 263–270
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;
};
Defined In
Source
Frequently Asked Questions
What is the ComponentType type?
ComponentType is a type/interface in the svelte codebase, defined in packages/svelte/src/index.d.ts.
Where is ComponentType defined?
ComponentType is defined in packages/svelte/src/index.d.ts at line 263.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free