UNPKG

588 BTypeScriptView Raw
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
7export 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
17export declare function get(belowFn?: () => void): StackFrame[];
18export declare function parse(err: Error): StackFrame[];