UNPKG

jsout

Version:

A Syslog-compatible, small, and simple logger for Typescript/Javascript projects. Sponsored by https://aeroview.io

8 lines (7 loc) 331 B
import { SerializedError } from '.'; /** * Recursively serializes an Error into a plain object, * preserving standard fields, cause chains, and custom properties. * Custom properties are depth-limited and circular-safe. */ export declare function serializeError(err: Error, depth?: number, maxDepth?: number): SerializedError;