mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
EventEmitter can be new()d
This commit is contained in:
Vendored
+3
-3
@@ -285,8 +285,7 @@ declare module NodeJs {
|
||||
// ---------- "events" module ----------
|
||||
export interface Events {
|
||||
EventEmitter: {
|
||||
(): any // Correctly reflect the fact that this is a (constructor) function,
|
||||
// without suggesting that instances can be obtained this way
|
||||
new(): Events.EventEmitter;
|
||||
listenerCount(emitter: Events.EventEmitter, event: string): number;
|
||||
}
|
||||
}
|
||||
@@ -418,7 +417,8 @@ declare module NodeJs {
|
||||
emit(event: string, ...args: any[]): boolean;
|
||||
|
||||
Worker: {
|
||||
(): any // Correctly reflect the fact that this is a (constructor) function, without suggesting that instances can be obtained this way
|
||||
(): any; // Correctly reflect the fact that this is a (constructor) function,
|
||||
// without suggesting that instances can be obtained this way
|
||||
}
|
||||
}
|
||||
export module Cluster {
|
||||
|
||||
Reference in New Issue
Block a user