UNPKG

@elsikora/nestjs-crud-automator

Version:

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

14 lines (11 loc) 482 B
import { IsEntityConstructor } from './is-entity-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" && !IsEntityConstructor(candidate); } export { IsEntityFactory }; //# sourceMappingURL=is-entity-factory.utility.js.map