stackframe.d.ts
1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Type definitions for StackFrame v1.0.0
// Project: https://github.com/stacktracejs/stackframe
// Definitions by: Eric Wendelin <https://www.eriwen.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module StackFrame {
export interface StackFrameOptions {
isConstructor?: boolean;
isEval?: boolean;
isNative?: boolean;
isToplevel?: boolean;
columnNumber?: number;
lineNumber?: number;
fileName?: string;
functionName?: string;
source?: string;
args?: any[];
}
class StackFrame {
constructor(obj: StackFrameOptions);
getArgs(): any[];
setArgs(args: any[]): void;
getEvalOrigin(): StackFrame;
setEvalOrigin(stackframe: StackFrame): void;
getIsConstructor(): boolean;
setIsConstructor(isConstructor: boolean): void;
getIsEval(): boolean;
setIsEval(isEval: boolean): void;
getIsNative(): boolean;
setIsNative(isNative: boolean): void;
getIsToplevel(): boolean;
setIsToplevel(isToplevel: boolean): void;
getColumnNumber(): number;
setColumnNumber(columnNumber: number): void;
getLineNumber(): number;
setLineNumber(lineNumber: number): void;
getFileName(): string;
setFileName(fileName: string): void;
getFunctionName(): string;
setFunctionName(functionName: string): void;
getSource(): string;
setSource(source: string): void;
toString(): string;
}
}