BindingKind Type — svelte Architecture
Architecture documentation for the BindingKind type/interface in index.d.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD abda1290_c387_1a18_fa9e_9ebfe1aa7c6d["BindingKind"] d1a9b9b5_cc04_9500_c39a_435c606b0766["index.d.ts"] abda1290_c387_1a18_fa9e_9ebfe1aa7c6d -->|defined in| d1a9b9b5_cc04_9500_c39a_435c606b0766 style abda1290_c387_1a18_fa9e_9ebfe1aa7c6d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/types/index.d.ts lines 267–280
export type BindingKind =
| 'normal' // A variable that is not in any way special
| 'prop' // A normal prop (possibly reassigned or mutated)
| 'bindable_prop' // A prop one can `bind:` to (possibly reassigned or mutated)
| 'rest_prop' // A rest prop
| 'raw_state' // A state variable
| 'state' // A deeply reactive state variable
| 'derived' // A derived variable
| 'each' // An each block parameter
| 'snippet' // A snippet parameter
| 'store_sub' // A $store value
| 'legacy_reactive' // A `$:` declaration
| 'template' // A binding declared in the template, e.g. in an `await` block or `const` tag
| 'static'; // A binding whose value is known to be static (i.e. each index)
Source
Frequently Asked Questions
What is the BindingKind type?
BindingKind is a type/interface in the svelte codebase, defined in packages/svelte/src/compiler/types/index.d.ts.
Where is BindingKind defined?
BindingKind is defined in packages/svelte/src/compiler/types/index.d.ts at line 267.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free