mirror of
https://github.com/denoland/deno.git
synced 2025-09-29 13:44:47 +00:00
chore: improve type safety of cli/js/compiler (#6647)
This commit is contained in:
parent
f35edc574a
commit
4f60a0b3bd
2 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue