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