Spring Type — svelte Architecture
Architecture documentation for the Spring type/interface in index.d.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD b5965d96_0149_124a_8a25_567d0e6cb258["Spring"] 6bd9d090_a582_e05c_669e_d53d4e7245f2["index.d.ts"] b5965d96_0149_124a_8a25_567d0e6cb258 -->|defined in| 6bd9d090_a582_e05c_669e_d53d4e7245f2 style b5965d96_0149_124a_8a25_567d0e6cb258 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/types/index.d.ts lines 1993–2006
export interface Spring<T> extends Readable<T> {
set(new_value: T, opts?: SpringUpdateOpts): Promise<void>;
/**
* @deprecated Only exists on the legacy `spring` store, not the `Spring` class
*/
update: (fn: Updater<T>, opts?: SpringUpdateOpts) => Promise<void>;
/**
* @deprecated Only exists on the legacy `spring` store, not the `Spring` class
*/
subscribe(fn: (value: T) => void): Unsubscriber;
precision: number;
damping: number;
stiffness: number;
}
Defined In
Source
Frequently Asked Questions
What is the Spring type?
Spring is a type/interface in the svelte codebase, defined in packages/svelte/types/index.d.ts.
Where is Spring defined?
Spring is defined in packages/svelte/types/index.d.ts at line 1993.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free