InputMapFromUnion
InputMapFromUnion<
TEvent> ={ [E in TEvent as E["type"]]: [event: E] }
Defined in: types.ts:293
Builds an input payload map from a discriminated event union, matching the
common “dispatch the whole event” pattern: handle(event.type, event).
Type Parameters
Section titled “Type Parameters”TEvent
Section titled “TEvent”TEvent extends object