feat: add support for TypeScript 3.1 (#26151)

PR Close #26151
This commit is contained in:
Igor Minar
2018-09-27 16:47:19 -07:00
committed by Alex Rickabaugh
parent f455518d80
commit 9993c72335
22 changed files with 34 additions and 136 deletions

View File

@ -23,7 +23,7 @@
},
"peerDependencies": {
"@angular/compiler": "0.0.0-PLACEHOLDER",
"typescript": ">=3.0.1 <3.1"
"typescript": ">=3.1.1 <3.2"
},
"engines" : {
"node" : ">=8.0"

View File

@ -72,14 +72,14 @@ const defaultEmitCallback: TsEmitCallback =
* Minimum supported TypeScript version
* ∀ supported typescript version v, v >= MIN_TS_VERSION
*/
const MIN_TS_VERSION = '3.0.1';
const MIN_TS_VERSION = '3.1.1';
/**
* Supremum of supported TypeScript versions
* ∀ supported typescript version v, v < MAX_TS_VERSION
* MAX_TS_VERSION is not considered as a supported TypeScript version
*/
const MAX_TS_VERSION = '3.1.0';
const MAX_TS_VERSION = '3.2.0';
class AngularCompilerProgram implements Program {
private rootNames: string[];