microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.1.5

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/typings/source-map-support/source-map-support.d.ts

44lines · modecode

1// Type definitions for source-map-support 0.2.10
2// Project: https://github.com/evanw/source-map-support
3// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6/// <reference path="../node/node.d.ts" />
7
8declare module 'source-map-support' {
9 /**
10 * Output of retrieveSourceMap().
11 */
12 export interface UrlAndMap {
13 url: string;
14 map: string | Buffer;
15 }
16
17 /**
18 * Options to install().
19 */
20 export interface Options {
21 handleUncaughtExceptions?: boolean;
22 emptyCacheBetweenOperations?: boolean;
23 retrieveFile?: (path: string) => string;
24 retrieveSourceMap?: (source: string) => UrlAndMap;
25 environment?: "browser" | "node" | "auto";
26 }
27
28 export interface Position {
29 source: string;
30 line: number;
31 column: number;
32 }
33
34 export function wrapCallSite(frame: any /* StackFrame */): any /* StackFrame */;
35 export function getErrorSource(error: Error): string;
36 export function mapSourcePosition(position: Position): Position;
37 export function retrieveSourceMap(source: string): UrlAndMap;
38
39 /**
40 * Install SourceMap support.
41 * @param options Can be used to e.g. disable uncaughtException handler.
42 */
43 export function install(options?: Options): void;
44}
45