Fix argument to decodeMappings

This commit is contained in:
Ron Buckton
2018-07-06 17:41:18 -07:00
parent ba2e4dc866
commit 9e9c6a01ad
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ namespace ts.sourcemaps {
}
/*@internal*/
export function decodeMappings(map: RawSourceMap): MappingsDecoder {
export function decodeMappings(map: Pick<RawSourceMap, "mappings" | "sources" | "names">): MappingsDecoder {
const state: DecoderState = {
encodedText: map.mappings,
currentNameIndex: undefined,
-4
View File
@@ -19,11 +19,7 @@ namespace Harness.SourceMapRecorder {
decodingIndex = 0;
sourceMapMappings = sourceMapData.sourceMapMappings;
mappings = ts.sourcemaps.decodeMappings({
version: 3,
file: sourceMapData.sourceMapFile,
sources: sourceMapData.sourceMapSources,
sourceRoot: sourceMapData.sourceMapSourceRoot,
sourcesContent: sourceMapData.sourceMapSourcesContent,
mappings: sourceMapData.sourceMapMappings,
names: sourceMapData.sourceMapNames
});