template.d.ts — svelte Source File
Architecture documentation for template.d.ts, a typescript file in the svelte codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 628b0d7d_f8bd_9570_9133_f9b9af4f58aa["template.d.ts"] ee93d8a6_6fde_b1c1_e15b_3a4da5326305["scope.js"] 628b0d7d_f8bd_9570_9133_f9b9af4f58aa --> ee93d8a6_6fde_b1c1_e15b_3a4da5326305 21ee6912_19c7_1d7c_e2c8_f54750024733["./css"] 628b0d7d_f8bd_9570_9133_f9b9af4f58aa --> 21ee6912_19c7_1d7c_e2c8_f54750024733 bbca3d2a_42c8_b215_d3b5_5077ccaf0797["nodes.js"] 628b0d7d_f8bd_9570_9133_f9b9af4f58aa --> bbca3d2a_42c8_b215_d3b5_5077ccaf0797 c696582a_9f3f_d301_2824_cb3de66aa770["#compiler"] 628b0d7d_f8bd_9570_9133_f9b9af4f58aa --> c696582a_9f3f_d301_2824_cb3de66aa770 4291260f_9c68_db0f_e313_37187427eeb3["estree"] 628b0d7d_f8bd_9570_9133_f9b9af4f58aa --> 4291260f_9c68_db0f_e313_37187427eeb3 style 628b0d7d_f8bd_9570_9133_f9b9af4f58aa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { Binding } from '#compiler';
import type {
ArrayExpression,
ArrowFunctionExpression,
VariableDeclaration,
VariableDeclarator,
Expression,
Identifier,
MemberExpression,
Node,
ObjectExpression,
Pattern,
Program,
ChainExpression,
SimpleCallExpression,
SequenceExpression,
SourceLocation
} from 'estree';
import type { Scope } from '../phases/scope';
import type { _CSS } from './css';
import type { ExpressionMetadata } from '../phases/nodes';
/**
* - `html` — the default, for e.g. `<div>` or `<span>`
* - `svg` — for e.g. `<svg>` or `<g>`
* - `mathml` — for e.g. `<math>` or `<mrow>`
*/
export type Namespace = 'html' | 'svg' | 'mathml';
export namespace AST {
export interface BaseNode {
type: string;
start: number;
end: number;
}
export interface Fragment {
type: 'Fragment';
nodes: Array<Text | Tag | ElementLike | Block | Comment>;
/** @internal */
metadata: {
/**
* Fragments declare their own scopes. A transparent fragment is one whose scope
* is not represented by a scope in the resulting JavaScript (e.g. an element scope),
* and should therefore delegate to parent scopes when generating unique identifiers
*/
transparent: boolean;
/**
* Whether or not we need to traverse into the fragment during mount/hydrate
*/
dynamic: boolean;
};
}
export interface Root extends BaseNode {
type: 'Root';
/**
* Inline options provided by `<svelte:options>` — these override options passed to `compile(...)`
*/
options: SvelteOptions | null;
// ... (593 more lines)
Domain
Classes
Types
- AnimateDirective
- AttachTag
- Attribute
- AttributeLike
- AwaitBlock
- BaseAttribute
- BaseElement
- BaseNode
- BindDirective
- Block
- ClassDirective
- Comment
- Component
- ConstTag
- DebugTag
- Directive
- EachBlock
- ElementLike
- ExpressionTag
- Fragment
- HtmlTag
- IfBlock
- JSComment
- KeyBlock
- LetDirective
- Namespace
- OnDirective
- RegularElement
- RenderTag
- Root
- Script
- SlotElement
- SnippetBlock
- SpreadAttribute
- StyleDirective
- SvelteBody
- SvelteBoundary
- SvelteComponent
- SvelteDocument
- SvelteElement
- SvelteFragment
- SvelteHead
- SvelteNode
- SvelteOptions
- SvelteOptionsRaw
- SvelteSelf
- SvelteWindow
- Tag
- TemplateNode
- Text
- TitleElement
- TransitionDirective
- UseDirective
Source
Frequently Asked Questions
What does template.d.ts do?
template.d.ts is a source file in the svelte codebase, written in typescript. It belongs to the Compiler domain.
What does template.d.ts depend on?
template.d.ts imports 5 module(s): #compiler, ./css, estree, nodes.js, scope.js.
Where is template.d.ts in the architecture?
template.d.ts is located at packages/svelte/src/compiler/types/template.d.ts (domain: Compiler, directory: packages/svelte/src/compiler/types).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free