The type of Variable#value.
The transformed type of a valid value.
Private
_validSee ValidatedVariable#valid. For internal use only
Private
Optional
_validSee ValidatedVariable#validValue. For internal use only
Readonly
validatorThe validator/transformer used for this variable's value. If null, then the value will always be valid and ValidatedVariable#validValue will be equal to Variable#value.
If true, then the current value is valid.
The current value.
If setting, Variable#setValue is called with no group.
The current value.
When the value is set via this setter, the class implementing this
interface should notify the observable with no group (undefined
). Note
that this is just a suggestion, not a strict requirement.
Unregister a previously registered callback from this observable.
Check if a given value is valid. Does not modify the current value.
Private
validateRegister a callback to this observable. When the value is changed, the callback will be called.
If true, the callback will be called once immediately after it's registered. False by default
Optional
group: unknownThe group to use when calling immediately. Only used if callNow is true, and is undefined
by default
Similar to Variable, except the variable's value can optionally be validated by a validator function.