Skip to content

Commit af53c7f

Browse files
committed
fix: failed types tests
1 parent 98db0a6 commit af53c7f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/event.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@ const MAX_LISTENERS = 200
66

77
const dispatcher = new events.EventEmitter()
88

9-
/**
10-
* @namespace
11-
* @alias event
12-
*/
139
dispatcher.setMaxListeners(MAX_LISTENERS)
1410

1511
// Increase process max listeners to prevent warnings for beforeExit and other events
1612
if (typeof process.setMaxListeners === 'function') {
1713
process.setMaxListeners(MAX_LISTENERS)
1814
}
1915

16+
17+
/**
18+
* @namespace
19+
* @alias event
20+
*/
21+
2022
module.exports = {
2123
/**
2224
* @type {NodeJS.EventEmitter}

0 commit comments

Comments
 (0)