UNPKG

@elsikora/nestjs-crud-automator

Version:

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

9 lines (8 loc) 458 B
import type { IApiBaseEntity } from '../interface/api-base-entity.interface'; import type { Type } from "@nestjs/common"; /** * 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. */ export declare function IsEntityFactory(candidate: unknown): candidate is () => IApiBaseEntity | Type<IApiBaseEntity> | undefined;