Interface: IObservable<T> experimental
Beta
Represents a stateful value that can be observed by different objects.
Type Parameters
T
T
Properties
validator?
readonlyoptionalvalidator?:ObservableValidator<T>
Beta
Remarks
Optional validator that will pre-process the new value.
value
readonlyvalue: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.
