import { Type } from '@nestjs/common' import { ContextTransformer } from '../interfaces' import { addHandlerToStore } from './' export const PipeContext = (transform: Type>) => ( target: Object, propertyKey: string, parameterIndex: number, ) => { addHandlerToStore(target, propertyKey, { transformations: [ { index: parameterIndex, transform, }, ], }) }