UNPKG

@nestjs/swagger

Version:

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

9 lines (8 loc) 342 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isBuiltInType = isBuiltInType; const lodash_1 = require("lodash"); const constants_1 = require("../services/constants"); function isBuiltInType(type) { return (0, lodash_1.isFunction)(type) && constants_1.BUILT_IN_TYPES.some((item) => item === type); }