Page Contents

Home > @loopback/context > Context > emitEvent

Context.emitEvent() method

A strongly-typed method to emit context events

Signature:

emitEvent<T extends ContextEvent>(type: string, event: T): void;

Parameters

Parameter Type Description
type string Event type
event T Context event

Returns:

void