UNPKG

@elsikora/nestjs-crud-automator

Version:

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

10 lines (9 loc) 497 B
import { IApiBaseEntity } from '../interface/api-base-entity.interface'; import { IApiEntity } from '../interface/entity'; /** * Generates metadata information about an entity including columns, table name, and primary key * @param {IApiBaseEntity} entity - The entity to generate information for * @returns {IApiEntity<E>} The generated entity information object * @template E - The entity type */ export declare function GenerateEntityInformation<E>(entity: IApiBaseEntity): IApiEntity<E>;