Skip to content

Commit 1453a60

Browse files
seanchas116basarat
authored andcommitted
Support tsconfig typeRoots (#1028)
1 parent 328e9ff commit 1453a60

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
@@ -62,6 +62,7 @@ var compilerOptionsValidation = {
6262
suppressExcessPropertyErrors: { type: types.boolean },
6363
suppressImplicitAnyIndexErrors: { type: types.boolean },
6464
target: { type: types.string, validValues: ['es3', 'es5', 'es6', 'es2015'] },
65+
typeRoots: { type: types.array },
6566
types: { type: types.object },
6667
version: { type: types.boolean },
6768
watch: { type: types.boolean },

lib/main/tsconfig/tsconfig.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ interface CompilerOptions {
7474
suppressExcessPropertyErrors?: boolean; // Optionally disable strict object literal assignment checking
7575
suppressImplicitAnyIndexErrors?: boolean;
7676
target?: string; // 'es3'|'es5' (default)|'es6'|'es2015'
77+
typeRoots?: string[];
7778
types?: string[];
7879
version?: boolean;
7980
watch?: boolean;
@@ -140,6 +141,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
140141
suppressExcessPropertyErrors: { type: types.boolean },
141142
suppressImplicitAnyIndexErrors: { type: types.boolean },
142143
target: { type: types.string, validValues: ['es3', 'es5', 'es6', 'es2015'] },
144+
typeRoots: { type: types.array },
143145
types: { type: types.object },
144146
version: { type: types.boolean },
145147
watch: { type: types.boolean },

0 commit comments

Comments
 (0)