prefer-const

This commit is contained in:
Alexander T
2019-06-19 17:58:49 +03:00
parent 504b932f7b
commit 5ce8c831b4
16 changed files with 50 additions and 53 deletions
+1 -2
View File
@@ -709,7 +709,6 @@ namespace ts {
const { rootNames, options, configFileParsingDiagnostics, projectReferences } = createProgramOptions;
let { oldProgram } = createProgramOptions;
let program: Program;
let processingDefaultLibFiles: SourceFile[] | undefined;
let processingOtherFiles: SourceFile[] | undefined;
let files: SourceFile[];
@@ -905,7 +904,7 @@ namespace ts {
// unconditionally set oldProgram to undefined to prevent it from being captured in closure
oldProgram = undefined;
program = {
const program: Program = {
getRootFileNames: () => rootNames,
getSourceFile,
getSourceFileByPath,