refactor: import ROUTE_ARGS_METADATA to replace hard-coded variable
This commit is contained in:
parent
70f69c634b
commit
17ce22a57d
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user