DefinitelyTyped/types/stack-trace/index.d.ts
Meir017 156b303d82
fixed stack-trace typings
removed duplicated function
2017-12-02 18:01:46 +02:00

19 lines
588 B
TypeScript

// Type definitions for node-stack-trace
// Project: https://github.com/felixge/node-stack-trace
// Definitions by: Exceptionless <https://github.com/exceptionless>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface StackFrame {
getTypeName(): string;
getFunctionName(): string;
getMethodName(): string;
getFileName(): string;
getLineNumber(): number;
getColumnNumber(): number;
isNative(): boolean;
}
export declare function get(belowFn?: () => void): StackFrame[];
export declare function parse(err: Error): StackFrame[];