AwaitBlock Type — svelte Architecture
Architecture documentation for the AwaitBlock type/interface in template.d.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 30f57659_1177_42d5_66e0_8d4abd984006["AwaitBlock"] 628b0d7d_f8bd_9570_9133_f9b9af4f58aa["template.d.ts"] 30f57659_1177_42d5_66e0_8d4abd984006 -->|defined in| 628b0d7d_f8bd_9570_9133_f9b9af4f58aa style 30f57659_1177_42d5_66e0_8d4abd984006 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/types/template.d.ts lines 493–508
export interface AwaitBlock extends BaseNode {
type: 'AwaitBlock';
expression: Expression;
// TODO can/should we move these inside the ThenBlock and CatchBlock?
/** The resolved value inside the `then` block */
value: Pattern | null;
/** The rejection reason inside the `catch` block */
error: Pattern | null;
pending: Fragment | null;
then: Fragment | null;
catch: Fragment | null;
/** @internal */
metadata: {
expression: ExpressionMetadata;
};
}
Source
Frequently Asked Questions
What is the AwaitBlock type?
AwaitBlock is a type/interface in the svelte codebase, defined in packages/svelte/src/compiler/types/template.d.ts.
Where is AwaitBlock defined?
AwaitBlock is defined in packages/svelte/src/compiler/types/template.d.ts at line 493.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free