You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
356 B
16 lines
356 B
5 years ago
|
// 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;
|