UNPKG

564 BTypeScriptView Raw
1/// <reference types="node" />
2import { EventEmitter as NativeEmitter } from "events";
3export declare class EventEmitter extends NativeEmitter {
4 on(event: string | symbol, listener: (...args: any) => void): this;
5 off(event: string | symbol, listener: (...args: any) => void): this;
6 once(event: string | symbol, listener: (...args: any) => void): this;
7 addListener(event: string | symbol, listener: (...args: any) => void): this;
8 removeListener(event: string | symbol, listener: (...args: any) => void): this;
9 private ensureListenerCount;
10}