MCPcopy Index your code
hub / github.com/MALSync/MALSync / emit

Method emit

src/chibiScript/ChibiEventEmitter.ts:18–20  ·  view source on GitHub ↗
(eventName: ChibiEvents, detail: any = null)

Source from the content-addressed store, hash-verified

16 }
17
18 public emit(eventName: ChibiEvents, detail: any = null) {
19 return this.target.dispatchEvent(new CustomEvent(eventName, { detail, cancelable: true }));
20 }
21}
22
23export const chibiEventEmitterSingleton = new ChibiEventEmitter();

Callers 4

globalEmitFunction · 0.80
emitter.tsFile · 0.80
emitEventMethod · 0.80
updateEventFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected