Skip to content

Type Alias: EventNames<Map> ​

ts
type EventNames<Map> = (keyof Map & string) | symbol;

Returns a union type containing all the keys of an event map.

Type Parameters ​

Type Parameter
Map extends EventsMap