Component Type — svelte Architecture
Architecture documentation for the Component type/interface in index.d.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD c0e2674f_f96f_8351_3e9c_844c95044b85["Component"] d5f75cc7_4dc4_5b53_55c5_43ee635d6602["index.d.ts"] c0e2674f_f96f_8351_3e9c_844c95044b85 -->|defined in| d5f75cc7_4dc4_5b53_55c5_43ee635d6602 style c0e2674f_f96f_8351_3e9c_844c95044b85 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/index.d.ts lines 141–172
export interface Component<
Props extends Record<string, any> = {},
Exports extends Record<string, any> = {},
Bindings extends keyof Props | '' = string
> {
/**
* @param internal An internal object used by Svelte. Do not use or modify.
* @param props The props passed to the component.
*/
(
this: void,
internals: ComponentInternals,
props: Props
): {
/**
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
* is a stop-gap solution. See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes)
* for more info.
*/
$on?(type: string, callback: (e: any) => void): () => void;
/**
* @deprecated This method only exists when using one of the legacy compatibility helpers, which
* is a stop-gap solution. See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes)
* for more info.
*/
$set?(props: Partial<Props>): void;
} & Exports;
/** The custom element version of the component. Only present if compiled with the `customElement` compiler option */
element?: typeof HTMLElement;
/** Does not exist at runtime, for typing capabilities only. DO NOT USE */
z_$$bindings?: Bindings;
}
Defined In
Source
Frequently Asked Questions
What is the Component type?
Component is a type/interface in the svelte codebase, defined in packages/svelte/src/index.d.ts.
Where is Component defined?
Component is defined in packages/svelte/src/index.d.ts at line 141.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free