UNPKG

event-lite

Version:

Light-weight EventEmitter (less than 1KB when gzipped)

16 lines (9 loc) 356 B
// event-lite.d.ts declare class EventLite { static mixin(proto: any): any; on(event: string, listener: (...args: any[]) => void): this; once(event: string, listener: (...args: any[]) => void): this; off(event: string, listener: (...args: any[]) => void): this; emit(event: string, ...args: any[]): boolean; } export = EventLite;