For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server-editor/interfaces/IObservable.md.

Interface: IObservable<T> experimental

Beta

Represents a stateful value that can be observed by different objects.

Type Parameters

T

T

Properties

validator?

readonly optional validator?: ObservableValidator<T>

Beta

Remarks

Optional validator that will pre-process the new value.


value

readonly value: Readonly<T>

Beta

Remarks

Current value of the observable.

Methods

set()

set(newValue): boolean

Beta

Parameters

newValue

T

New value to be set (will be processed by the validator if it exists).

Returns

boolean

Remarks

Updates the value and notifies dependent objects.