Skip to content

@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?

optional name: string

Defined in: ../domwise/dist/index.d.ts:2893

Optional debug name for the signal.


unwatched()?

optional unwatched: (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()?

optional watched: (this) => void

Defined in: ../domwise/dist/index.d.ts:2889

Called when the signal gains its first subscriber.

Parameters

this

SignalLike<T>

Returns

void