MCPcopy Create free account
hub / github.com/codeaashu/claude-code / constructor

Method constructor

src/ink/events/emitter.ts:7–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5// class, and so `emit` respects `stopImmediatePropagation()`.
6export 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected