MCPcopy
hub / github.com/erictik/midjourney-api / fire_event

Function fire_event

src/gradio/client.ts:569–573  ·  view source on GitHub ↗
(event: Event<K>)

Source from the content-addressed store, hash-verified

567 });
568
569 function fire_event<K extends EventType>(event: Event<K>) {
570 const narrowed_listener_map: ListenerMap<K> = listener_map;
571 const listeners = narrowed_listener_map[event.type] || [];
572 listeners?.forEach((l) => l(event));
573 }
574
575 function on<K extends EventType>(
576 eventType: K,

Callers 2

submitFunction · 0.85
cancelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected