Value Type — svelte Architecture
Architecture documentation for the Value type/interface in types.d.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 9aef0625_90b9_1eab_b580_af3278822fff["Value"] b54d747e_876e_6ce7_1b09_d738a162f64b["types.d.ts"] 9aef0625_90b9_1eab_b580_af3278822fff -->|defined in| b54d747e_876e_6ce7_1b09_d738a162f64b style 9aef0625_90b9_1eab_b580_af3278822fff fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/client/reactivity/types.d.ts lines 18–42
export interface Value<V = unknown> extends Signal {
/** Equality function */
equals: Equals;
/** Signals that read from this signal */
reactions: null | Reaction[];
/** Read version */
rv: number;
/** The latest value for this signal */
v: V;
// dev-only
/** A label (e.g. the `foo` in `let foo = $state(...)`) used for `$inspect.trace()` */
label?: string;
/** An error with a stack trace showing when the source was created */
created?: Error | null;
/** An map of errors with stack traces showing when the source was updated, keyed by the stack trace */
updated?: Map<string, { error: Error; count: number }> | null;
/**
* Whether or not the source was set while running an effect — if so, we need to
* increment the write version so that it shows up as dirty when the effect re-runs
*/
set_during_effect?: boolean;
/** A function that retrieves the underlying source, used for each block item signals */
trace?: null | (() => void);
}
Source
Frequently Asked Questions
What is the Value type?
Value is a type/interface in the svelte codebase, defined in packages/svelte/src/internal/client/reactivity/types.d.ts.
Where is Value defined?
Value is defined in packages/svelte/src/internal/client/reactivity/types.d.ts at line 18.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free