OnDirective Type — svelte Architecture
Architecture documentation for the OnDirective type/interface in template.d.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 01ee56c1_9214_00fc_5f8e_b5e1bca3fb41["OnDirective"] 628b0d7d_f8bd_9570_9133_f9b9af4f58aa["template.d.ts"] 01ee56c1_9214_00fc_5f8e_b5e1bca3fb41 -->|defined in| 628b0d7d_f8bd_9570_9133_f9b9af4f58aa style 01ee56c1_9214_00fc_5f8e_b5e1bca3fb41 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/types/template.d.ts lines 243–264
export interface OnDirective extends BaseAttribute {
type: 'OnDirective';
/** The 'x' in `on:x` */
name: string;
/** The 'y' in `on:x={y}` */
expression: null | Expression;
modifiers: Array<
| 'capture'
| 'nonpassive'
| 'once'
| 'passive'
| 'preventDefault'
| 'self'
| 'stopImmediatePropagation'
| 'stopPropagation'
| 'trusted'
>;
/** @internal */
metadata: {
expression: ExpressionMetadata;
};
}
Source
Frequently Asked Questions
What is the OnDirective type?
OnDirective is a type/interface in the svelte codebase, defined in packages/svelte/src/compiler/types/template.d.ts.
Where is OnDirective defined?
OnDirective is defined in packages/svelte/src/compiler/types/template.d.ts at line 243.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free