Lumen ChartsLumen Charts
Api

IWatchedValueReadonly

Download Markdown

Integration guide · Reference index

Public contract reference. This declaration describes types and callback shapes; availability is constrained by the linked integration guide and the runtime capability. Legacy product-specific fields are not a promise of implementation.

Extends

IObservableValueReadOnly

subscribe

subscribe(
    callback: (value: T) => void,
    options?: WatchedValueSubscribeOptions,
  ): void;

Use the type signature above and the integration guide for the owning capability.

ParameterTypeRequired
callback(value: T) => voidYes
optionsWatchedValueSubscribeOptionsNo

unsubscribe

unsubscribe(callback?: ((value: T) => void) | null): void;

Use the type signature above and the integration guide for the owning capability.

ParameterTypeRequired
callback((value: T) => void) | nullNo

when

when(callback: WatchedValueCallback<T>): void;

Use the type signature above and the integration guide for the owning capability.

ParameterTypeRequired
callbackWatchedValueCallback<T>Yes

On this page