Type alias StateId<T>

StateId<T>: symbol & {
    _rootStateType: T;
}

The rx-signals Store uses this type to uniquely identify behaviors representing a root-state behavior. A StateId<T> does not make any use of the generic T itself, but is given this parameter only as a trick to let Typescript infer and thus enforce the correct types. Use the getStateId function to generate a corresponding ID.

Type Parameters

  • T

    specifies the value-type for the corresponding behavior observable (type of the state)

Generated using TypeDoc