Class: MappedValue<I, T>
Defined in: src/sdk/sub/MappedValue.ts:19
An accessible value that is mapped from one or more input accessibles.
Type Parameters
| Type Parameter |
|---|
I extends any[] |
T |
Implements
Accessible<T>
Methods
get()
get():
T
Defined in: src/sdk/sub/MappedValue.ts:72
Gets this item's state.
Returns
T
This item's state.
Implementation of
create()
Call Signature
staticcreate<I>(...inputs):MappedValue<I,Readonly<I>>
Defined in: src/sdk/sub/MappedValue.ts:43
Creates a new mapped accessible value whose state is a combined tuple of an arbitrary number of input accessibles.
Type Parameters
| Type Parameter |
|---|
I extends any[] |
Parameters
| Parameter | Type | Description |
|---|---|---|
...inputs | MappedValueInputs<I> | The accessibles that provide the inputs to the new mapped accessible. |
Returns
MappedValue<I, Readonly<I>>
A new mapped accessible value whose state is a combined tuple of the specified input accessibles.
Call Signature
staticcreate<I,T>(mapFunc, ...inputs):MappedValue<I,T>
Defined in: src/sdk/sub/MappedValue.ts:51
Creates a new mapped accessible value.
Type Parameters
| Type Parameter |
|---|
I extends any[] |
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
mapFunc | (inputs) => T | The function to use to map inputs to the new accessible value. |
...inputs | MappedValueInputs<I> | The accessibles that provide the inputs to the new mapped accessible. |
Returns
MappedValue<I, T>