error-stack-parser.d.ts 564 B

123456789101112131415161718
  1. // Type definitions for ErrorStackParser v2.0.0
  2. // Project: https://github.com/stacktracejs/error-stack-parser
  3. // Definitions by: Eric Wendelin <https://www.eriwen.com>
  4. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
  5. import StackFrame = require("stackframe");
  6. declare module ErrorStackParser {
  7. /**
  8. * Given an Error object, extract the most information from it.
  9. *
  10. * @param {Error} error object
  11. * @return {Array} of StackFrames
  12. */
  13. export function parse(error: Error): StackFrame[];
  14. }
  15. export = ErrorStackParser;