set augmentations, moduleAugmentations as readonly

This commit is contained in:
Alexander T
2019-08-15 09:55:10 +03:00
parent 3424f843f5
commit 21d296b0cf
2 changed files with 2 additions and 2 deletions

View File

@@ -32101,7 +32101,7 @@ namespace ts {
amalgamatedDuplicates = createMap();
// Initialize global symbol table
let augmentations: (StringLiteral | Identifier)[][] | undefined;
let augmentations: (readonly (StringLiteral | Identifier)[])[] | undefined;
for (const file of host.getSourceFiles()) {
if (file.redirectInfo) {
continue;

View File

@@ -2773,7 +2773,7 @@ namespace ts {
/* @internal */ resolvedTypeReferenceDirectiveNames: Map<ResolvedTypeReferenceDirective | undefined>;
/* @internal */ imports: readonly StringLiteralLike[];
// Identifier only if `declare global`
/* @internal */ moduleAugmentations: (StringLiteral | Identifier)[];
/* @internal */ moduleAugmentations: readonly (StringLiteral | Identifier)[];
/* @internal */ patternAmbientModules?: PatternAmbientModule[];
/* @internal */ ambientModuleNames: readonly string[];
/* @internal */ checkJsDirective?: CheckJsDirective;