Home / Type/ ComponentProps Type — svelte Architecture

ComponentProps Type — svelte Architecture

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/svelte/types/index.d.ts lines 233–238

	export type ComponentProps<Comp extends SvelteComponent | Component<any, any>> =
		Comp extends SvelteComponent<infer Props>
			? Props
			: Comp extends Component<infer Props, any>
				? Props
				: never;

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free