Skip to main content

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​

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​

Accessible.get


create()​

Call Signature​

static create<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​
ParameterTypeDescription
...inputsMappedValueInputs<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​

static create<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​
ParameterTypeDescription
mapFunc(inputs) => TThe function to use to map inputs to the new accessible value.
...inputsMappedValueInputs<I>The accessibles that provide the inputs to the new mapped accessible.
Returns​

MappedValue<I, T>