Type alias EventId<T>

EventId<T>: symbol & {
    _eventType: T;
}

The rx-signals Store uses this type to uniquely identify all of its events. An EventId<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 getEventId function to generate a corresponding ID.

Type Parameters

  • T

    specifies the value-type for the corresponding event observable

Generated using TypeDoc