Class: MappedValue<I, T>
An accessible value that is mapped from one or more input accessibles.
Type parameters
Name | Type |
---|---|
I | extends any [] |
T | T |
Implements
Accessible
<T
>
Methods
get
▸ get(): T
Gets this item's state.
Returns
T
This item's state.
Implementation of
Defined in
src/sdk/sub/MappedValue.ts:72
create
▸ create<I
>(...inputs
): MappedValue
<I
, Readonly
<I
>>
Creates a new mapped accessible value whose state is a combined tuple of an arbitrary number of input accessibles.
Type parameters
Name | Type |
---|---|
I | extends any [] |
Parameters
Name | 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.
Defined in
src/sdk/sub/MappedValue.ts:43
▸ create<I
, T
>(mapFunc
, ...inputs
): MappedValue
<I
, T
>
Creates a new mapped accessible value.
Type parameters
Name | Type |
---|---|
I | extends any [] |
T | T |
Parameters
Name | Type | Description |
---|---|---|
mapFunc | (inputs : Readonly <I >) => 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
>
Defined in
src/sdk/sub/MappedValue.ts:51