Interface StateRef<T>

Interface for a state reference. Provides methods to get, set, and confirm the current state.

interface StateRef<T> {
    onChange: ISimpleEvent<T>;
    confirm(): void;
    get(): T;
    set(value: T): void;
}

Type Parameters

  • T

Implemented by

Properties

Methods

Properties

onChange: ISimpleEvent<T>

Methods