UNPKG

@nestjs/core

Version:

Nest - modern, fast, powerful node.js web framework (@core)

16 lines (15 loc) 437 B
import { RouteParamtypes } from '@nestjs/common/internal'; export class ParamsTokenFactory { exchangeEnumForString(type) { switch (type) { case RouteParamtypes.BODY: return 'body'; case RouteParamtypes.PARAM: return 'param'; case RouteParamtypes.QUERY: return 'query'; default: return 'custom'; } } }