UNPKG

@nestjs/swagger

Version:

OpenAPI for NestJS: generate the API document from controllers and decorators, serve Swagger UI, and derive request types with mapped types.

6 lines (5 loc) • 231 B
import isFunction from 'es-toolkit/compat/isFunction'; import { BUILT_IN_TYPES } from '../services/constants.js'; export function isBuiltInType(type) { return isFunction(type) && BUILT_IN_TYPES.some((item) => item === type); }