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]>
interfaceA 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
| Name | Type | Description |
|---|---|---|
EM | extends EventMapBase | Event map. |
C | extends keyof EM & string | Channel key. |
T | extends keyof EM[C] & string | Type key within channel C. |
P | — | Payload type (defaults to EM[C][T]). |