diff --git a/src/reflected.ts b/src/reflected.ts index 2014925..41e535e 100644 --- a/src/reflected.ts +++ b/src/reflected.ts @@ -1,9 +1,8 @@ import {RouteParamtypes} from '@nestjs/common/enums/route-paramtypes.enum'; import {assignMetadata, ParamData, PipeTransform, RouteParamMetadata, Type} from "@nestjs/common"; +import {ROUTE_ARGS_METADATA} from '@nestjs/common/constants'; import {isNil, isString} from "@nestjs/common/utils/shared.utils"; -const ROUTE_ARGS_METADATA = '__routeArguments__'; - export function createRouteParamDecorator(paramtype: RouteParamtypes) { return (data?: ParamData): ParameterDecorator => (target, key, index) => {