IObservableValue<T>
Interface
Types Module: Broker
Type parameters
Name |
---|
T |
Methods
setValue
Set boxed value
Signature
setValue(value: T) => void
Parameters
Name | Type | Description |
---|---|---|
value | T | value to be set |
Returns
void
subscribe
Subscribe to changes
Signature
subscribe(callback: Function) => void
Parameters
Name | Type | Description |
---|---|---|
callback | (value: T) => void | callback function to be evoked when observed value changes |
Returns
void
unsubscribe
Unsubscribe from changes
Signature
unsubscribe(callback: Function) => void
Parameters
Name | Type | Description |
---|---|---|
callback | (value: T) => void | callback function to be unsubscribed |
Returns
void
value
Value
Signature
value() => T
Returns
T