@qier-player/danmaku
Version:
Powerful danmaku, support many features.
11 lines (10 loc) • 342 B
TypeScript
import { Dispose } from './dispose';
export declare class EventEmitter {
private _events;
constructor();
emit(evt: string, ...args: any[]): boolean;
on(evt: string, fn?: Function): Dispose;
once(evt: string, fn?: Function): Dispose;
off(evt: string, fn?: Function): this;
removeAllListeners(evt?: string): this;
}