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
Readonly
value
Current value of the $.
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 is a reactive value that can be read and subscribed to.