SvelteElement Type — svelte Architecture
Architecture documentation for the SvelteElement type/interface in template.d.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 365ffd0d_845e_3736_8d15_5ec61ccc880f["SvelteElement"] 628b0d7d_f8bd_9570_9133_f9b9af4f58aa["template.d.ts"] 365ffd0d_845e_3736_8d15_5ec61ccc880f -->|defined in| 628b0d7d_f8bd_9570_9133_f9b9af4f58aa style 365ffd0d_845e_3736_8d15_5ec61ccc880f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/types/template.d.ts lines 385–405
export interface SvelteElement extends BaseElement {
type: 'SvelteElement';
name: 'svelte:element';
tag: Expression;
/** @internal */
metadata: {
expression: ExpressionMetadata;
/**
* `true` if this is an svg element. The boolean may not be accurate because
* the tag is dynamic, but we do our best to infer it from the template.
*/
svg: boolean;
/**
* `true` if this is a mathml element. The boolean may not be accurate because
* the tag is dynamic, but we do our best to infer it from the template.
*/
mathml: boolean;
scoped: boolean;
path: SvelteNode[];
};
}
Source
Frequently Asked Questions
What is the SvelteElement type?
SvelteElement is a type/interface in the svelte codebase, defined in packages/svelte/src/compiler/types/template.d.ts.
Where is SvelteElement defined?
SvelteElement is defined in packages/svelte/src/compiler/types/template.d.ts at line 385.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free