-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
Expand file tree
/
Copy pathsource-map-record.d.ts
More file actions
44 lines (40 loc) · 1010 Bytes
/
source-map-record.d.ts
File metadata and controls
44 lines (40 loc) · 1010 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
/**
* The global type of a .golden JSON.
*/
interface SourceMapRecord {
file: string|null;
sources: SourceRecord[];
mappings: MappingRecord[];
}
/**
* Corresponds to a [Decoded Source Record](https://tc39.es/ecma426/#decoded-source-record)
*/
interface SourceRecord {
url: string|null;
content: string|null;
ignored: boolean;
}
/**
* Corresponds to a [Decoded Mapping Record](https://tc39.es/ecma426/#decoded-mapping-record)
*/
interface MappingRecord {
generatedPosition: PositionRecord;
originalPosition: OriginalPositionRecord|null;
name: string|null;
}
/**
* Corresponds to a [Position Record](https://tc39.es/ecma426/#sec-position-record-type)
*/
interface PositionRecord {
line: number;
column: number;
}
/**
* Corresponds to a [Original Position Record](https://tc39.es/ecma426/#sec-original-position-record-type)
*/
interface OriginalPositionRecord {
/** An index into {@link SourceMapRecord.sources}. */
sourceIndex: number;
line: number;
column: number;
}