summaryrefslogtreecommitdiff
path: root/cli/js/compiler.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-07-06 10:13:27 +1000
committerGitHub <noreply@github.com>2020-07-05 20:13:27 -0400
commit4f60a0b3bd4732ce835f2027aa82edbb5ea6c7f9 (patch)
tree2ff2ab3f078fb7ae12af854801c2f209af17a8de /cli/js/compiler.ts
parentf35edc574aea43f65e052db148d9b337d7f2dae4 (diff)
chore: improve type safety of cli/js/compiler (#6647)
Diffstat (limited to 'cli/js/compiler.ts')
-rw-r--r--cli/js/compiler.ts2
1 files changed, 1 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;
}