Type alias TypedEvent<T>

TypedEvent<T>: Readonly<{
    event: T;
    type: EventId<T>;
}>

The Store uses the TypedEvent<T> to bundle certain events and their corresponding EventId<T>. This is used for EventSources that can dispatch events of different types (see addXTypedEventSource methods) or for cases where you want to subscribe multiple events and need to differentiate between them at runtime.

Type Parameters

  • T

    specifies the type for the corresponding event-values

Generated using TypeDoc