UNPKG

@elsikora/nestjs-crud-automator

Version:

A library for automating the creation of CRUD operations in NestJS.

16 lines (12 loc) 511 B
'use strict'; var constructor_utility = require('./constructor.utility.js'); /** * Checks whether the candidate is a factory returning an entity reference. * @param {unknown} candidate - Value to inspect. * @returns {boolean} True when candidate is a lazy resolver function. */ function IsEntityFactory(candidate) { return typeof candidate === "function" && !constructor_utility.IsEntityConstructor(candidate); } exports.IsEntityFactory = IsEntityFactory; //# sourceMappingURL=factory.utility.js.map