/opt/canhelp/node_modules/@socket.io/component-emitter/lib/esm
Edit: /opt/canhelp/node_modules/@socket.io/component-emitter/lib/esm/index.d.ts (5616B)
/**
* An events map is an interface that maps event names to their value, which
* represents the type of the `on` listener.
*/
export interface EventsMap {
[event: string]: any;
}
/**
* The default events map, used if no EventsMap is given. Using this EventsMap
* is equivalent to accepting all event names, and any data.
*/
export interface DefaultEventsMap {
[event: string]: (...args: any[]) => void;
}
/**
* Returns a union type containing all the keys of an event map.
*/
export type EventNames