UNPKG

658 BTypeScriptView Raw
1import { PipeTransform } from '../../index';
2import { Type } from '../../interfaces';
3import { CustomParamFactory } from '../../interfaces/features/custom-route-param-factory.interface';
4export type ParamDecoratorEnhancer = ParameterDecorator;
5/**
6 * Defines HTTP route param decorator
7 *
8 * @param factory
9 * @param enhancers
10 *
11 * @publicApi
12 */
13export declare function createParamDecorator<FactoryData = any, FactoryInput = any, FactoryOutput = any>(factory: CustomParamFactory<FactoryData, FactoryInput, FactoryOutput>, enhancers?: ParamDecoratorEnhancer[]): (...dataOrPipes: (Type<PipeTransform> | PipeTransform | FactoryData)[]) => ParameterDecorator;