()
| 5 | // class, and so `emit` respects `stopImmediatePropagation()`. |
| 6 | export class EventEmitter extends NodeEventEmitter { |
| 7 | constructor() { |
| 8 | super() |
| 9 | // Disable the default maxListeners warning. In React, many components |
| 10 | // can legitimately listen to the same event (e.g., useInput hooks). |
| 11 | // The default limit of 10 causes spurious warnings. |
| 12 | this.setMaxListeners(0) |
| 13 | } |
| 14 | |
| 15 | override emit(type: string | symbol, ...args: unknown[]): boolean { |
| 16 | // Delegate to node for `error`, since it's not treated like a normal event |
nothing calls this directly
no outgoing calls
no test coverage detected