From 41a95b753568ae05cd6434738968f0e2ba3b9c82 Mon Sep 17 00:00:00 2001 From: Kanchalai Tanglertsampan Date: Tue, 29 Mar 2016 11:05:44 -0700 Subject: [PATCH] Address PR: add comment --- src/compiler/checker.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 1684938decd..5eef154835f 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -150,6 +150,12 @@ namespace ts { let globalNumberType: ObjectType; let globalBooleanType: ObjectType; let globalRegExpType: ObjectType; + let anyArrayType: Type; + let anyReadonlyArrayType: Type; + + // The library files are only loaded when the feature is used. + // This allows users to just specify library files they want to used through --lib + // and they will not get an error from not having unrelated library files let getGlobalTemplateStringsArrayType: () => ObjectType; let getGlobalESSymbolType: () => ObjectType; @@ -157,8 +163,6 @@ namespace ts { let getGlobalIteratorType: () => GenericType; let getGlobalIterableIteratorType: () => GenericType; - let anyArrayType: Type; - let anyReadonlyArrayType: Type; let getGlobalClassDecoratorType: () => ObjectType; let getGlobalParameterDecoratorType: () => ObjectType; let getGlobalPropertyDecoratorType: () => ObjectType;