mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Removed lookup of TemplateStringsArray for non-ES6 targets.
This will enable custom ES3/ES5 lib.d.ts files that omit the TemplateStringsArray type, but don't need it anyway.
This commit is contained in:
@@ -9102,7 +9102,10 @@ module ts {
|
||||
globalNumberType = getGlobalType("Number");
|
||||
globalBooleanType = getGlobalType("Boolean");
|
||||
globalRegExpType = getGlobalType("RegExp");
|
||||
globalTemplateStringsArrayType = getGlobalType("TemplateStringsArray");
|
||||
|
||||
if (compilerOptions.target >= ScriptTarget.ES6) {
|
||||
globalTemplateStringsArrayType = getGlobalType("TemplateStringsArray");
|
||||
}
|
||||
}
|
||||
|
||||
initializeTypeChecker();
|
||||
|
||||
Reference in New Issue
Block a user