The type of ValidatedBox#value.
The transformed type of a valid value.
Readonly
validIf true, then the current value is valid.
Readonly
validThe last valid value, post-transformation. If there was never a valid
value, undefined
is returned.
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.
Register a callback to this observable. When the value is changed, the callback will be called.
Optional
callNow: booleanIf 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 Box, except the value can optionally be validated and transformed by that same validator.