UNPKG

nani

Version:

Better error handling for Node

9 lines (8 loc) 332 B
/** * Returns the stack of an error, with the stacks of each error in its cause * chain appended. This will include only the first error in the case of a * `MultiError`. * @param err - An error instance, potentially with a cause chain. * @returns Full error stack. */ export declare function getFullStack(err: Error): string;