UNPKG

@fajarnugraha37/error

Version:

Runtime-agnostic error handling library with structured errors, adapters, and validation support for Bun, Node.js, and browsers

11 lines (9 loc) 342 B
interface FormatOptions { stack?: boolean; short?: boolean; colors?: boolean; } declare function format(err: unknown, options?: FormatOptions): string; declare function formatOneLine(err: unknown): string; declare function formatVerbose(err: unknown): string; export { type FormatOptions, format, formatOneLine, formatVerbose };