IfBlock Type — svelte Architecture
Architecture documentation for the IfBlock type/interface in template.d.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD f3e56718_2f8a_b57d_75d6_01d43ad3e30f["IfBlock"] 628b0d7d_f8bd_9570_9133_f9b9af4f58aa["template.d.ts"] f3e56718_2f8a_b57d_75d6_01d43ad3e30f -->|defined in| 628b0d7d_f8bd_9570_9133_f9b9af4f58aa style f3e56718_2f8a_b57d_75d6_01d43ad3e30f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/types/template.d.ts lines 478–490
export interface IfBlock extends BaseNode {
type: 'IfBlock';
elseif: boolean;
test: Expression;
consequent: Fragment;
alternate: Fragment | null;
/** @internal */
metadata: {
/** List of else-if blocks that can be flattened into this if block */
flattened?: IfBlock[];
expression: ExpressionMetadata;
};
}
Source
Frequently Asked Questions
What is the IfBlock type?
IfBlock is a type/interface in the svelte codebase, defined in packages/svelte/src/compiler/types/template.d.ts.
Where is IfBlock defined?
IfBlock is defined in packages/svelte/src/compiler/types/template.d.ts at line 478.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free