@serenity-is/corelib / SignalOptions
Interface: SignalOptions<T>
Defined in: ../domwise/dist/index.d.ts:2887
Options for creating a signal via signal / computed.
Re-exported from @preact/signals-core.
Type Parameters
T
T
Type of the signal's value.
Properties
name?
optionalname:string
Defined in: ../domwise/dist/index.d.ts:2893
Optional debug name for the signal.
unwatched()?
optionalunwatched: (this) =>void
Defined in: ../domwise/dist/index.d.ts:2891
Called when the signal loses its last subscriber.
Parameters
this
SignalLike<T>
Returns
void
watched()?
optionalwatched: (this) =>void
Defined in: ../domwise/dist/index.d.ts:2889
Called when the signal gains its first subscriber.
Parameters
this
SignalLike<T>
Returns
void