mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
629 B
TypeScript
21 lines
629 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
|
|
|
|
declare module 'stack-trace' {
|
|
export interface StackFrame {
|
|
getTypeName():string;
|
|
getFunctionName():string;
|
|
getMethodName():string;
|
|
getFileName():string;
|
|
getTypeName():string;
|
|
getLineNumber():number;
|
|
getColumnNumber():number;
|
|
isNative():boolean;
|
|
}
|
|
|
|
export function get(belowFn?:() => void): StackFrame[];
|
|
export function parse(err:Error): StackFrame[];
|
|
}
|