core / type
SourceSignal
A mutable source signal created from plain JavaScript data.
A mutable source signal created from plain JavaScript data.
Source signals can notify dependent computations when their value changes. The specific type (array, object, or primitive) determines which additional methods are available.
Signature
export type SourceSignal<T> = T extends any[]
? ArraySourceSignal<T>
: T extends object
? ObjectSourceSignal<T>
: BaseSourceSignal<T>;
Type Parameters
- The type of value the signal holds
Remarks
- For arrays: includes array mutation methods (push, pop, splice, etc.)
- For plain objects: includes
set()method for partial updates - For primitives: only the base signal interface
See Also
- signal - For creating source signals
- DerivedSignal - For read-only derived signals