ReadSignal
import type { ReadSignal } from 'pixi-silk/signal';
A value you can read and watch.
Extended by#
Type Parameters#
| Type Parameter |
|---|
T |
Properties#
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
value | readonly | T | Current value. | signal.ts:14 |
Methods#
subscribe()#
subscribe(fn: Listener<T>): () => void;
Calls fn on every change, not with the current value. Returns the unsubscribe function.
Parameters#
| Parameter | Type |
|---|---|
fn | Listener<T> |
Returns#
() => void