UNPKG

@elsikora/nestjs-crud-automator

Version:

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

10 lines (9 loc) 542 B
import { HttpStatus, Type } from '@nestjs/common'; /** * Creates exception DTOs with standardized properties based on HTTP status codes. * Generates a class with properties like correlationID, error name, message, status code, and timestamp, * all properly decorated with Swagger and validation decorators. * @param {HttpStatus} httpStatus - The HTTP status code for the exception * @returns {Type<unknown>} A generated DTO class for the exception */ export declare function DtoGenerateException(httpStatus: HttpStatus): Type<unknown>;