UNPKG

@elsikora/nestjs-crud-automator

Version:

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

9 lines (8 loc) 454 B
import { IApiBaseEntity } from '../../../interface/api-base-entity.interface'; import { 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;