-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTypes.ts
More file actions
46 lines (43 loc) · 906 Bytes
/
Copy pathTypes.ts
File metadata and controls
46 lines (43 loc) · 906 Bytes
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
/**
* ANSI color codes for terminal output.
*/
export interface AnsiColors {
/** Dimmed text color */
dim: string
/** Red text color */
red: string
/** Red background color */
redBg: string
/** Reset color formatting */
reset: string
/** White text color */
white: string
}
/**
* Parsed error structure.
*/
export interface StackError {
/** Error type (e.g., TypeError, ReferenceError) */
type: string
/** Error message */
message: string
/** Array of stack frames */
frames: StackFrame[]
}
/**
* Stack frame information.
*/
export interface StackFrame {
/** Function name where the error occurred */
function: string
/** File path where the error occurred */
file: string
/** Line number in the file */
line: number
/** Column number in the file */
column: number
}
/**
* Stack formatting style.
*/
export type StackType = 'compact' | 'detailed'