Class: Value<T>
Defined in: src/sdk/sub/Value.ts:6
An accessible value whose state can be freely manipulated.
Type Parameters
| Type Parameter |
|---|
T |
Implements
Methods
get()
get():
T
Defined in: src/sdk/sub/Value.ts:27
Gets this item's state.
Returns
T
This item's state.
Implementation of
set()
set(
value):void
Defined in: src/sdk/sub/Value.ts:32
Sets the state of this item.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | T | The input used to change the state. |
Returns
void
Implementation of
create()
staticcreate<T>(initialValue):Value<T>
Defined in: src/sdk/sub/Value.ts:22
Creates and returns a new Value.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
initialValue | T | The initial value of the Value. |
Returns
Value<T>
A new Value with the specified initial value.