UNPKG

@elsikora/nestjs-crud-automator

Version:

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

9 lines (8 loc) 407 B
import { EErrorStringAction } from '../../enum/utility'; import { TApiException } from '../../type/class'; import { TApiControllerGetListQuery } from '../../type/decorator/api/controller'; export interface IApiRequestValidator<E> { errorType: EErrorStringAction; exception: TApiException; validationFunction: (entity: Partial<E> | TApiControllerGetListQuery<E>) => boolean | Promise<boolean>; }