UNPKG

@algoan/nestjs-http-exception-filter

Version:
10 lines (9 loc) 356 B
import { ValidationError } from 'class-validator'; export declare function getCode(exResponse: ExceptionResponse | string): string; export declare function getErrorMessage(exResponse: ExceptionResponse | string): string; interface ExceptionResponse { code?: string; error?: string; message?: string | string[] | ValidationError[]; } export {};