1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import { RawSourceMap } from 'source-map';
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | export interface UrlAndMap {
|
18 | url: string;
|
19 | map: string | RawSourceMap;
|
20 | }
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export interface Options {
|
26 | handleUncaughtExceptions?: boolean | undefined;
|
27 | hookRequire?: boolean | undefined;
|
28 | emptyCacheBetweenOperations?: boolean | undefined;
|
29 | environment?: 'auto' | 'browser' | 'node' | undefined;
|
30 | overrideRetrieveFile?: boolean | undefined;
|
31 | overrideRetrieveSourceMap?: boolean | undefined;
|
32 | retrieveFile?(path: string): string;
|
33 | retrieveSourceMap?(source: string): UrlAndMap | null;
|
34 | }
|
35 |
|
36 | export interface Position {
|
37 | source: string;
|
38 | line: number;
|
39 | column: number;
|
40 | }
|
41 |
|
42 | export function wrapCallSite(frame: any ): any /* StackFrame */;
|
43 | export function getErrorSource(error: Error): string | null;
|
44 | export function mapSourcePosition(position: Position): Position;
|
45 | export function retrieveSourceMap(source: string): UrlAndMap | null;
|
46 | export function resetRetrieveHandlers(): void;
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 | export function install(options?: Options): void;
|