UNPKG

540 BTypeScriptView Raw
1import type { Event, EventHint } from './event';
2/**
3 * Event processors are used to change the event before it will be send.
4 * We strongly advise to make this function sync.
5 * Returning a PromiseLike<Event | null> will work just fine, but better be sure that you know what you are doing.
6 * Event processing will be deferred until your Promise is resolved.
7 */
8export interface EventProcessor {
9 (event: Event, hint: EventHint): PromiseLike<Event | null> | Event | null;
10 id?: string;
11}
12//# sourceMappingURL=eventprocessor.d.ts.map
\No newline at end of file