UNPKG

806 BTypeScriptView Raw
1import { PipeTransform, Type } from '@nestjs/common';
2import 'reflect-metadata';
3import { GqlParamtype } from '../enums/gql-paramtype.enum';
4export type ParamData = object | string | number;
5export type ParamsMetadata = Record<number, {
6 index: number;
7 data?: ParamData;
8}>;
9export declare const createGqlParamDecorator: (paramtype: GqlParamtype) => (data?: ParamData) => ParameterDecorator;
10export declare const addPipesMetadata: (paramtype: GqlParamtype, data: any, pipes: (Type<PipeTransform> | PipeTransform)[], target: Record<string, any>, key: string | symbol, index: number) => void;
11export declare const createGqlPipesParamDecorator: (paramtype: GqlParamtype) => (data?: any, ...pipes: (Type<PipeTransform> | PipeTransform)[]) => ParameterDecorator;
12//# sourceMappingURL=param.utils.d.ts.map
\No newline at end of file