UNPKG

@visulima/error

Version:

Error with more than just a message, stacktrace parsing.

18 lines (15 loc) 514 B
type TraceType = "eval" | "internal" | "native" | undefined; interface Trace { column: number | undefined; evalOrigin?: Trace | undefined; file: string | undefined; line: number | undefined; methodName: string | undefined; raw: string; type?: TraceType | undefined; } declare const parse: (error: Error, { filter, frameLimit }?: Partial<{ filter?: (line: string) => boolean; frameLimit: number; }>) => Trace[]; export { type Trace, type TraceType, parse as parseStacktrace };