mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
Updated eventemmiter2 config options @ types_2.0 (#12732)
* Updated eventemmiter2 config options @ types_2.0 * Updated eventemmiter2 tests @ types_2.0
This commit is contained in:
committed by
Mohamed Hegazy
parent
484f91b1ed
commit
d0927cade2
@@ -18,7 +18,8 @@ function testConfiguration() {
|
||||
wildcard: true,
|
||||
delimiter: '::',
|
||||
newListener: false,
|
||||
maxListeners: 20
|
||||
maxListeners: 20,
|
||||
verboseMemoryLeak: true
|
||||
});
|
||||
var bar = new EventEmitter2({});
|
||||
var bazz = new EventEmitter2();
|
||||
|
||||
Vendored
+6
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for EventEmitter2 v0.14.4
|
||||
// Type definitions for EventEmitter2 v2.2.0
|
||||
// Project: https://github.com/asyncly/EventEmitter2
|
||||
// Definitions by: ryiwamoto <https://github.com/ryiwamoto/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -23,6 +23,11 @@ interface EventEmitter2Configuration {
|
||||
* max listeners that can be assigned to an event, default 10.
|
||||
*/
|
||||
maxListeners?: number;
|
||||
|
||||
/**
|
||||
* show event name in memory leak message when more than maximum amount of listeners is assigned, default false
|
||||
*/
|
||||
verboseMemoryLeak?: boolean;
|
||||
}
|
||||
|
||||
declare class EventEmitter2 {
|
||||
|
||||
Reference in New Issue
Block a user