stackframe.d.ts
1.98 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// Type definitions for StackFrame v1.2.0
// Project: https://github.com/stacktracejs/stackframe
// Definitions by: Eric Wendelin <https://www.eriwen.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export as namespace StackFrame; // global for non-module UMD users
export = StackFrame;
declare namespace StackFrame {
export interface StackFrameOptions {
isConstructor?: boolean;
isEval?: boolean;
isNative?: boolean;
isToplevel?: boolean;
columnNumber?: number;
lineNumber?: number;
fileName?: string;
functionName?: string;
source?: string;
args?: any[];
evalOrigin?: StackFrame;
}
}
declare class StackFrame {
constructor(obj: StackFrame.StackFrameOptions);
args?: any[];
getArgs(): any[] | undefined;
setArgs(args: any[]): void;
evalOrigin?: StackFrame;
getEvalOrigin(): StackFrame | undefined;
setEvalOrigin(stackframe: StackFrame): void;
isConstructor?: boolean;
getIsConstructor(): boolean | undefined;
setIsConstructor(isConstructor: boolean): void;
isEval?: boolean;
getIsEval(): boolean | undefined;
setIsEval(isEval: boolean): void;
isNative?: boolean;
getIsNative(): boolean | undefined;
setIsNative(isNative: boolean): void;
isToplevel?: boolean;
getIsToplevel(): boolean | undefined;
setIsToplevel(isToplevel: boolean): void;
columnNumber?: number;
getColumnNumber(): number | undefined;
setColumnNumber(columnNumber: number): void;
lineNumber?: number;
getLineNumber(): number | undefined;
setLineNumber(lineNumber: number): void;
fileName?: string;
getFileName(): string | undefined;
setFileName(fileName: string): void;
functionName?: string;
getFunctionName(): string | undefined;
setFunctionName(functionName: string): void;
source?: string;
getSource(): string | undefined;
setSource(source: string): void;
toString(): string;
}