IsEvent
true
iff the given type is an acceptable shape for an event
Signature
export type IsEvent<Event> = Event extends (...args: any[]) => any ? true : false;
Type Parameters
Parameter | Description |
---|---|
Event |
true
iff the given type is an acceptable shape for an event
export type IsEvent<Event> = Event extends (...args: any[]) => any ? true : false;
Parameter | Description |
---|---|
Event |