@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
8 lines (7 loc) • 600 B
TypeScript
import type { EApiDtoType, EApiRouteType } from '../enum/decorator/api/index';
import type { IApiEntity } from './entity/index';
import type { Type } from "@nestjs/common";
import type { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeProperties } from '../type/decorator/api/property/index';
export interface IDtoGenerateFactory<E> {
create(metadata: TApiPropertyDescribeProperties, entity: IApiEntity<E>, config: TApiPropertyDescribeDtoProperties, method?: EApiRouteType, dtoType?: EApiDtoType, propertyName?: string, generatedDTOs?: Record<string, Type<unknown>>): PropertyDecorator;
}