From 17ce22a57d7cd3b8491682b90a0e0490ea5a0326 Mon Sep 17 00:00:00 2001 From: Shinwoo PARK Date: Fri, 21 Mar 2025 08:56:40 +0900 Subject: [PATCH] refactor: import ROUTE_ARGS_METADATA to replace hard-coded variable --- src/reflected.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) => {