diff options
Diffstat (limited to 'cli/js')
-rw-r--r-- | cli/js/compiler.ts | 2 | ||||
-rw-r--r-- | cli/js/ts_global.d.ts | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/cli/js/compiler.ts b/cli/js/compiler.ts index 905f5efb2..33fef4002 100644 --- a/cli/js/compiler.ts +++ b/cli/js/compiler.ts @@ -245,6 +245,7 @@ class SourceFile { processed = false; sourceCode?: string; tsSourceFile?: ts.SourceFile; + versionHash!: string; url!: string; constructor(json: SourceFileJson) { @@ -445,7 +446,6 @@ class Host implements ts.CompilerHost { sourceFile.sourceCode, languageVersion ); - //@ts-ignore sourceFile.tsSourceFile.version = sourceFile.versionHash; delete sourceFile.sourceCode; } diff --git a/cli/js/ts_global.d.ts b/cli/js/ts_global.d.ts index dcdf4a3e4..a32e8b620 100644 --- a/cli/js/ts_global.d.ts +++ b/cli/js/ts_global.d.ts @@ -29,5 +29,9 @@ declare global { disable(): void; getDuration(value: string): number; }; + + interface SourceFile { + version?: string; + } } } |