UNPKG

trapx

Version:

A plug-and-play middleware for standardized error handling in TypeScript-based Express.js applications

4 lines (3 loc) 201 B
import { BaseError } from '../../core/errors'; import { ErrorResponse } from '../../core/types/ErrorTypes'; export declare function formatError(error: BaseError, includeStack: boolean): ErrorResponse;