EventKey<EM extends EventMapBase>

type
types.ts:47

Canonical 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

NameTypeDescription
EMextends EventMapBaseEvent map.