UNPKG

@elsikora/nestjs-crud-automator

Version:

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

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