Skip to main content

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​

MutableAccessible.get


set()​

set(value): void

Defined in: src/sdk/sub/Value.ts:32

Sets the state of this item.

Parameters​

ParameterTypeDescription
valueTThe input used to change the state.

Returns​

void

Implementation of​

MutableAccessible.set


create()​

static create<T>(initialValue): Value<T>

Defined in: src/sdk/sub/Value.ts:22

Creates and returns a new Value.

Type Parameters​

Type Parameter
T

Parameters​

ParameterTypeDescription
initialValueTThe initial value of the Value.

Returns​

Value<T>

A new Value with the specified initial value.