EventKey<EM extends EventMapBase>
typeCanonical routing concept: a readonly tuple [channel, type] that uniquely identifies an event.
- Used consistently across ReducerSpec, EffectSpec, and React hooks.
- Literal key lists narrow channel/type/payload in reducers and effects.
- Non-literal usage degrades safely to unions.
Definition
type
type EventKey<EM extends EventMapBase> = { [C in keyof EM & string]: [C, keyof EM[C] & string] }[keyof EM & string]{ [C in keyof EM & string]: [C, keyof EM[C] & string] }[keyof EM & string]
Type parameters
| Name | Type | Description |
|---|---|---|
EM | extends EventMapBase | Event map. |