1 | // Type definitions for node-stack-trace
|
2 | // Project: https://github.com/felixge/node-stack-trace
|
3 | // Definitions by: Exceptionless <https://github.com/exceptionless>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 |
|
7 | export interface StackFrame {
|
8 | getTypeName(): string;
|
9 | getFunctionName(): string;
|
10 | getMethodName(): string;
|
11 | getFileName(): string;
|
12 | getLineNumber(): number;
|
13 | getColumnNumber(): number;
|
14 | isNative(): boolean;
|
15 | }
|
16 |
|
17 | export declare function get(belowFn?: () => void): StackFrame[];
|
18 | export declare function parse(err: Error): StackFrame[];
|