@@ -21,6 +21,7 @@ interface CompilerOptions {
21
21
allowSyntheticDefaultImports ?: boolean ;
22
22
allowUnreachableCode ?: boolean ;
23
23
allowUnusedLabels ?: boolean ;
24
+ alwaysStrict ?: boolean ;
24
25
baseUrl ?: string ;
25
26
charset ?: string ;
26
27
codepage ?: number ;
@@ -38,6 +39,7 @@ interface CompilerOptions {
38
39
inlineSources ?: boolean ;
39
40
isolatedModules ?: boolean ;
40
41
jsx ?: string ;
42
+ jsxFactory ?: string ;
41
43
lib ?: string [ ] ;
42
44
listFiles ?: boolean ;
43
45
locale ?: string ;
@@ -74,10 +76,11 @@ interface CompilerOptions {
74
76
skipLibCheck ?: boolean ;
75
77
sourceMap ?: boolean ; // Generates SourceMaps (.map files)
76
78
sourceRoot ?: string ; // Optionally specifies the location where debugger should locate TypeScript source files after deployment
79
+ strictNullChecks ?: boolean ;
77
80
stripInternal ?: boolean ;
78
81
suppressExcessPropertyErrors ?: boolean ; // Optionally disable strict object literal assignment checking
79
82
suppressImplicitAnyIndexErrors ?: boolean ;
80
- target ?: string ; // 'es3'|'es5' (default) |'es6'|'es2015'
83
+ target ?: string ; // 'es3'|'es5'|'es6'|'es2015'|'es2016'|'es2017'|'esnext', defaults to es5
81
84
typeRoots ?: string [ ] ;
82
85
types ?: string [ ] ;
83
86
version ?: boolean ;
@@ -90,6 +93,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
90
93
allowSyntheticDefaultImports : { type : types . boolean } ,
91
94
allowUnreachableCode : { type : types . boolean } ,
92
95
allowUnusedLabels : { type : types . boolean } ,
96
+ alwaysStrict : { type : types . boolean } ,
93
97
baseUrl : { type : types . string } ,
94
98
charset : { type : types . string } ,
95
99
codepage : { type : types . number } ,
@@ -107,6 +111,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
107
111
inlineSources : { type : types . boolean } ,
108
112
isolatedModules : { type : types . boolean } ,
109
113
jsx : { type : types . string , validValues : [ 'preserve' , 'react' ] } ,
114
+ jsxFactory : { type : types . string } ,
110
115
lib : { type : types . array } ,
111
116
listFiles : { type : types . boolean } ,
112
117
locals : { type : types . string } ,
@@ -147,7 +152,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
147
152
stripInternal : { type : types . boolean } ,
148
153
suppressExcessPropertyErrors : { type : types . boolean } ,
149
154
suppressImplicitAnyIndexErrors : { type : types . boolean } ,
150
- target : { type : types . string , validValues : [ 'es3' , 'es5' , 'es6' , 'es2015' ] } ,
155
+ target : { type : types . string , validValues : [ 'es3' , 'es5' , 'es6' , 'es2015' , 'es2016' , 'es2017' , 'esnext' ] } ,
151
156
typeRoots : { type : types . array } ,
152
157
types : { type : types . array } ,
153
158
version : { type : types . boolean } ,
@@ -292,7 +297,10 @@ var typescriptEnumMap = {
292
297
'es3' : ts . ScriptTarget . ES3 ,
293
298
'es5' : ts . ScriptTarget . ES5 ,
294
299
'es6' : ts . ScriptTarget . ES2015 ,
295
- 'latest' : ts . ScriptTarget . Latest
300
+ 'es2015' : ts . ScriptTarget . ES2015 ,
301
+ 'es2016' : ts . ScriptTarget . ES2016 ,
302
+ 'es2017' : ts . ScriptTarget . ES2017 ,
303
+ 'esnext' : ts . ScriptTarget . Latest ,
296
304
} ,
297
305
module : {
298
306
'none' : ts . ModuleKind . None ,
0 commit comments