ExactWhen<EM extends EventMapBase>

type
types.ts:1887

The exact forms of When: every form but channelPattern. What reducers and effects accept.

Exact rather than pattern-matched on purpose, and refused rather than ignored: before 0.10.0 a reducer or effect given a channelPattern registered without complaint and then handled nothing at all.

Definition

type
type ExactWhen<EM extends EventMapBase> = Exclude<When<EM>, { channelPattern: string }>

Exclude<When<EM>, { channelPattern: string }>

Type parameters

NameTypeDescription
EMextends EventMapBaseEvent map.