UNPKG

621 BTypeScriptView Raw
1/**
2 * stack-trace - Parses node.js stack traces
3 *
4 * This was originally forked to fix this issue:
5 * https://github.com/felixge/node-stack-trace/issues/31
6 *
7 * Mar 19,2019 - #4fd379e
8 *
9 * https://github.com/felixge/node-stack-trace/
10 * @license MIT
11 */
12/** Decoded StackFrame */
13export interface StackFrame {
14 fileName: string;
15 lineNumber: number;
16 functionName: string;
17 typeName: string;
18 methodName: string;
19 native: boolean;
20 columnNumber: number;
21}
22/** Extracts StackFrames from the Error */
23export declare function parse(err: Error): StackFrame[];
24//# sourceMappingURL=stacktrace.d.ts.map
\No newline at end of file