import { Type } from '@nestjs/common' ; import { isFunction } from 'lodash' ; import { BUILT_IN_TYPES } from '../services/constants' ; export function isBuiltInType ( type ) { return isFunction ( type ) && BUILT_IN_TYPES . some ( ( item ) => item === type ) ; }