Skip to main content
Version: v25

IObservableValueReadOnly<T>

Interface
Types Module: Broker

Type parameters

Name
T

Methods

subscribe

Subscribe to changes

Signature

subscribe(callback: Function) => void

Parameters

NameTypeDescription
callback(value: T) => voidcallback function to be evoked when observed value changes

Returns

void


unsubscribe

Unsubscribe from changes

Signature

unsubscribe(callback: Function) => void

Parameters

NameTypeDescription
callback(value: T) => voidcallback function to be unsubscribed

Returns

void


value

Value

Signature

value() => T

Returns

T