Skip to content
Version: xstate@5.0.0

InferEvent type​

Signature:

export type InferEvent<E extends EventObject> = {
[T in E['type']]: {
type: T;
} & Extract<E, {
type: T;
}>;
}[E['type']];

References: EventObject