UNPKG

693 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.ParamsTokenFactory = void 0;
4const route_paramtypes_enum_1 = require("@nestjs/common/enums/route-paramtypes.enum");
5class ParamsTokenFactory {
6 exchangeEnumForString(type) {
7 switch (type) {
8 case route_paramtypes_enum_1.RouteParamtypes.BODY:
9 return 'body';
10 case route_paramtypes_enum_1.RouteParamtypes.PARAM:
11 return 'param';
12 case route_paramtypes_enum_1.RouteParamtypes.QUERY:
13 return 'query';
14 default:
15 return 'custom';
16 }
17 }
18}
19exports.ParamsTokenFactory = ParamsTokenFactory;