UNPKG

@villedemontreal/workit-types

Version:
15 lines (14 loc) 564 B
import { Interceptor } from '../core/interceptor'; import { ITracerPropagator } from '../tracer/tracerPropagator'; export interface IProcessHandlerConfig { /** * When we receive a payload from the client, we execute all interceptors. * Those interceptors return IMessage that is merged (Shallow copy for body and customHeaders). * This payload is passed to the task (bound to the IoC). */ interceptors?: Interceptor | Interceptor[]; /** * Used for extracting traceId from message */ propagation?: ITracerPropagator; }