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