UNPKG

tiny-emitter

Version:

A tiny (less than 1k) event emitter library

6 lines 248 B
export declare class TinyEmitter { on(event: string, callback: Function, ctx?: any): this; once(event: string, callback: Function, ctx?: any): this; emit(event: string, ...args: any[]): this; off(event: string, callback?: Function): this; }