@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
10 lines (9 loc) • 513 B
TypeScript
import type { IApiBaseEntity } from '../interface/api-base-entity.interface';
import type { IApiEntity } from '../interface/entity/index';
/**
* 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>;