createParamDecorator

Defines HTTP route param decorator


 @createParamDecorator<FactoryData = any, FactoryOutput = any>(factory: CustomParamFactory<FactoryData, FactoryOutput>, enhancers: ParameterDecorator[] = [])

Parameters

Option Type Description
factory CustomParamFactory
enhancers ParameterDecorator[]

Optional. Default is [].

Returns

(...dataOrPipes: (Type<PipeTransform> | PipeTransform | FactoryData)[]) => ParameterDecorator