UNPKG

@visulima/error

Version:

Error with more than just a message, stacktrace parsing.

7 lines (6 loc) 264 B
import type { VisulimaError } from "./visulima-error.d.ts"; /** * Will return an array of all causes in the error in the order they occurred. */ declare const getErrorCauses: <E = Error | VisulimaError | unknown>(error: E) => E[]; export default getErrorCauses;