mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
node: improved EventEmitter's definition with this-typing
This commit is contained in:
Vendored
+6
-7
@@ -72,12 +72,12 @@ declare module "gulp-nodemon" {
|
||||
}
|
||||
|
||||
interface EventEmitter extends NodeJS.EventEmitter {
|
||||
addListener(event: string, listener: Function): EventEmitter;
|
||||
addListener(event: string, tasks: string[]): EventEmitter;
|
||||
on(event: string, listener: Function): EventEmitter;
|
||||
on(event: string, tasks: string[]): EventEmitter;
|
||||
once(event: string, listener: Function): EventEmitter;
|
||||
once(event: string, tasks: string[]): EventEmitter;
|
||||
addListener(event: string, listener: Function): this;
|
||||
addListener(event: string, tasks: string[]): this;
|
||||
on(event: string, listener: Function): this;
|
||||
on(event: string, tasks: string[]): this;
|
||||
once(event: string, listener: Function): this;
|
||||
once(event: string, tasks: string[]): this;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,4 +85,3 @@ declare module "gulp-nodemon" {
|
||||
|
||||
export = nodemon;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user