Skip to content

Commit 8c8a921

Browse files
pwnallbasarat
authored andcommitted
Support the "types" compiler option in tsconfig.json. (#1019)
Definition in commandLineParser.ts: https://github.com/Microsoft/TypeScript/blob/f19844fbe97656a9e1f743fb6fe4e9d706a83c0d/src/compiler/commandLineParser.ts#L349
1 parent 34a2fe1 commit 8c8a921

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

dist/main/tsconfig/tsconfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ var compilerOptionsValidation = {
6161
suppressExcessPropertyErrors: { type: types.boolean },
6262
suppressImplicitAnyIndexErrors: { type: types.boolean },
6363
target: { type: types.string, validValues: ['es3', 'es5', 'es6', 'es2015'] },
64+
types: { type: types.object },
6465
version: { type: types.boolean },
6566
watch: { type: types.boolean },
6667
lib: { type: types.array }

lib/main/tsconfig/tsconfig.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ interface CompilerOptions {
7373
suppressExcessPropertyErrors?: boolean; // Optionally disable strict object literal assignment checking
7474
suppressImplicitAnyIndexErrors?: boolean;
7575
target?: string; // 'es3'|'es5' (default)|'es6'|'es2015'
76+
types?: string[];
7677
version?: boolean;
7778
watch?: boolean;
7879
lib?: string[];
@@ -137,6 +138,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
137138
suppressExcessPropertyErrors: { type: types.boolean },
138139
suppressImplicitAnyIndexErrors: { type: types.boolean },
139140
target: { type: types.string, validValues: ['es3', 'es5', 'es6', 'es2015'] },
141+
types: { type: types.object },
140142
version: { type: types.boolean },
141143
watch: { type: types.boolean },
142144
lib: { type: types.array }

0 commit comments

Comments
 (0)