Home / Type/ BindDirective Type — svelte Architecture

BindDirective Type — svelte Architecture

Architecture documentation for the BindDirective type/interface in template.d.ts from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  2a6b420a_e47b_dc25_b7b3_74e98ac5a435["BindDirective"]
  628b0d7d_f8bd_9570_9133_f9b9af4f58aa["template.d.ts"]
  2a6b420a_e47b_dc25_b7b3_74e98ac5a435 -->|defined in| 628b0d7d_f8bd_9570_9133_f9b9af4f58aa
  style 2a6b420a_e47b_dc25_b7b3_74e98ac5a435 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/types/template.d.ts lines 205–218

	export interface BindDirective extends BaseAttribute {
		type: 'BindDirective';
		/** The 'x' in `bind:x` */
		name: string;
		/** The y in `bind:x={y}` */
		expression: Identifier | MemberExpression | SequenceExpression;
		/** @internal */
		metadata: {
			binding?: Binding | null;
			binding_group_name: Identifier;
			parent_each_blocks: EachBlock[];
			expression: ExpressionMetadata;
		};
	}

Frequently Asked Questions

What is the BindDirective type?
BindDirective is a type/interface in the svelte codebase, defined in packages/svelte/src/compiler/types/template.d.ts.
Where is BindDirective defined?
BindDirective is defined in packages/svelte/src/compiler/types/template.d.ts at line 205.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free