Readonly
$version
A version representation of the value. If two versions of a $ is not equal(Object.is
), it
means the value
has changed (event if the value
is equal).
Get current value.
Optional
Readonly
name
Set new value
Current value of the Writable
Remove all subscribers and lock.
Subscribe to value changes without immediate emission.
a disposer function that cancels the subscription
Subscribe to value changes with immediate emission.
a disposer function that cancels the subscription
Remove the given subscriber or all subscribers if no subscriber is provided.
Optional
subscriber:
(...args:
any[])
=>
any
Optional subscriber function to remove. If not provided, all subscribers will be removed.
A Readable with a writable
value
property and aset
method.