Skip to main content

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

MutableAccessible.get

Defined in

src/sdk/sub/Value.ts:27


set

set(value): void

Sets the state of this item.

Parameters

NameTypeDescription
valueTThe input used to change the state.

Returns

void

Implementation of

MutableAccessible.set

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

NameTypeDescription
initialValueTThe initial value of the Value.

Returns

Value<T>

A new Value with the specified initial value.

Defined in

src/sdk/sub/Value.ts:22