MCPcopy Index your code
hub / github.com/sqlchat/sqlchat / getInstance

Method getInstance

src/utils/event-emitter.ts:11–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 private constructor() {}
10
11 public static getInstance(): EventEmitter {
12 if (!EventEmitter.instance) {
13 EventEmitter.instance = new EventEmitter();
14 }
15 return EventEmitter.instance;
16 }
17
18 on(eventName: EventType, callback: Callback) {
19 if (!this.events[eventName]) {

Callers 1

getEventEmitterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected