UNPKG

@elsikora/nestjs-crud-automator

Version:

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

8 lines (7 loc) 562 B
import { EApiDtoType, EApiRouteType } from '../enum/decorator/api'; import { IApiEntity } from './entity'; import { Type } from '@nestjs/common'; import { TApiPropertyDescribeDtoProperties, TApiPropertyDescribeProperties } from '../type/decorator/api/property'; export interface IDtoGenerateFactory<E> { create(metadata: TApiPropertyDescribeProperties, entity: IApiEntity<E>, config: TApiPropertyDescribeDtoProperties, method?: EApiRouteType, dtoType?: EApiDtoType, propertyName?: string, generatedDTOs?: Record<string, Type<unknown>>): PropertyDecorator; }