Skip to main content

isSignal()

Returns true if the given value is a signal (either an Atom or a Computed).

Signature

isSignal(value: any): value is Signal<any, unknown>;

Parameters

NameType
valueany

Returns

value is Signal<any, unknown>

Defined in: signia/src/isSignal.ts:9