Skip to content
pixi-silk
GitHub repository
Interface

ReadSignal

import type { ReadSignal } from 'pixi-silk/signal';

A value you can read and watch.

Extended by#

Type Parameters#

Type Parameter
T

Properties#

PropertyModifierTypeDescriptionDefined in
valuereadonlyTCurrent 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#

ParameterType
fnListener<T>

Returns#

() => void