@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
14 lines (11 loc) • 462 B
JavaScript
import { IsEntityConstructor } from './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=factory.utility.js.map