Skip to content

@ue-too/board / index / Observable

Interface: Observable<T> ​

Defined in: packages/board/src/utils/observable.ts:71

Interface for the Observable pattern implementation.

Remarks ​

Observables allow multiple observers to subscribe and receive notifications when data is emitted. This is the pub-sub pattern for event handling.

Implementations can be synchronous or asynchronous:

Type Parameters ​

T ​

T extends any[]

Tuple type of data emitted to observers

Methods ​

notify() ​

notify(...data): void

Defined in: packages/board/src/utils/observable.ts:73

Parameters ​

data ​

...T

Returns ​

void


subscribe() ​

subscribe(observer, options?): () => void

Defined in: packages/board/src/utils/observable.ts:72

Parameters ​

observer ​

Observer<T>

options? ​

SubscriptionOptions

Returns ​

(): void

Returns ​

void