MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / emitEvent

Method emitEvent

packages/context/src/context.ts:200–202  ·  view source on GitHub ↗

* A strongly-typed method to emit context events * @param type Event type * @param event Context event

(type: string, event: T)

Source from the content-addressed store, hash-verified

198 * @param event Context event
199 */
200 emitEvent<T extends ContextEvent>(type: string, event: T) {
201 this.emit(type, event);
202 }
203
204 /**
205 * Emit an `error` event

Callers 2

addMethod · 0.95
unbindMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected