La referencia de la API está disponible solo en inglés por ahora.

Event<EM extends EventMapBase = EventMapBase, C extends keyof EM & string = keyof EM & string, T extends keyof EM[C] & string = keyof EM[C] & string, P = EM[C][T]>

interface
types.ts:72

A single event object: { channel, type, payload, id }.

- The id field is automatically added by the store to enable deduplication. - Used for preventing duplicate event processing (e.g., React Strict Mode).

Type parameters

NameTypeDescription
EMextends EventMapBaseEvent map.
Cextends keyof EM & stringChannel key.
Textends keyof EM[C] & stringType key within channel C.
PPayload type (defaults to EM[C][T]).

Properties

NameTypeDescription
channelC
idstringUnique identifier for deduplication and devtools tracking (automatically added by store)
payloadP
typeT