Root Type — svelte Architecture
Architecture documentation for the Root type/interface in template.d.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD c841ddb8_ff28_45fc_961a_d1648c815a7b["Root"] 628b0d7d_f8bd_9570_9133_f9b9af4f58aa["template.d.ts"] c841ddb8_ff28_45fc_961a_d1648c815a7b -->|defined in| 628b0d7d_f8bd_9570_9133_f9b9af4f58aa style c841ddb8_ff28_45fc_961a_d1648c815a7b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/types/template.d.ts lines 55–75
export interface Root extends BaseNode {
type: 'Root';
/**
* Inline options provided by `<svelte:options>` — these override options passed to `compile(...)`
*/
options: SvelteOptions | null;
fragment: Fragment;
/** The parsed `<style>` element, if exists */
css: AST.CSS.StyleSheet | null;
/** The parsed `<script>` element, if exists */
instance: Script | null;
/** The parsed `<script module>` element, if exists */
module: Script | null;
/** Comments found in <script> and {expressions} */
comments: JSComment[];
/** @internal */
metadata: {
/** Whether the component was parsed with typescript */
ts: boolean;
};
}
Source
Frequently Asked Questions
What is the Root type?
Root is a type/interface in the svelte codebase, defined in packages/svelte/src/compiler/types/template.d.ts.
Where is Root defined?
Root is defined in packages/svelte/src/compiler/types/template.d.ts at line 55.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free