EventUnion<EM extends EventMapBase>

type
types.ts:737

Every legal { channel, type, payload, id } as a *distinct* object type.

Definition

type
type EventUnion<EM extends EventMapBase> = { [C in keyof EM & string]: { [T in keyof EM[C] & string]: Event<EM, C, T> }[keyof EM[C] & string] }[keyof EM & string]

{ [C in keyof EM & string]: { [T in keyof EM[C] & string]: Event<EM, C, T> }[keyof EM[C] & string] }[keyof EM & string]

Type parameters

NameTypeDescription
EMextends EventMapBaseEvent map.