refactor: import ROUTE_ARGS_METADATA to replace hard-coded variable

This commit is contained in:
Shinwoo PARK 2025-03-21 08:56:40 +09:00
parent 70f69c634b
commit 17ce22a57d

View File

@ -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) => {