Home > @idealeap/pipeline > PipeOptions > preProcess
PipeOptions.preProcess property
An optional function to preprocess the input data before passing it to the pipe.
Signature:
typescript
preProcess?: (input: T, context: PipelineContext) => MaybePromise<T>;
preProcess?: (input: T, context: PipelineContext) => MaybePromise<T>;