Skip to content

Commit 09e9dde

Browse files
committed
Merge pull request #576 from ryanwischkaemper/fix-575
Add suppressExcessPropertyErrors option for tsconfig.json. Fixes #575
2 parents e798dcc + 14638bc commit 09e9dde

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

dist/main/tsconfig/tsconfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ var compilerOptionsValidation = {
3636
rootDir: { type: types.string },
3737
sourceMap: { type: types.boolean },
3838
sourceRoot: { type: types.string },
39+
suppressExcessPropertyErrors: { type: types.boolean },
3940
suppressImplicitAnyIndexErrors: { type: types.boolean },
4041
target: { type: types.string, validValues: ['es3', 'es5', 'es6'] },
4142
version: { type: types.boolean },

lib/main/tsconfig/tsconfig.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ interface CompilerOptions {
5050
rootDir?: string;
5151
sourceMap?: boolean; // Generates SourceMaps (.map files)
5252
sourceRoot?: string; // Optionally specifies the location where debugger should locate TypeScript source files after deployment
53+
suppressExcessPropertyErrors?: boolean; // Optionally disable strict object literal assignment checking
5354
suppressImplicitAnyIndexErrors?: boolean;
5455
target?: string; // 'es3'|'es5' (default)|'es6'
5556
version?: boolean;
@@ -90,6 +91,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
9091
rootDir: { type: types.string },
9192
sourceMap: { type: types.boolean },
9293
sourceRoot: { type: types.string },
94+
suppressExcessPropertyErrors: { type: types.boolean },
9395
suppressImplicitAnyIndexErrors: { type: types.boolean },
9496
target: { type: types.string, validValues: ['es3', 'es5', 'es6'] },
9597
version: { type: types.boolean },
@@ -578,7 +580,7 @@ interface Typings {
578580
*/
579581
function getDefinitionsForNodeModules(projectDir: string, files: string[]): { ours: string[]; implicit: string[], packagejson: string[] } {
580582
let packagejson = [];
581-
583+
582584
/** TODO use later when we care about versions */
583585
function versionStringToNumber(version: string): number {
584586
var [maj, min, patch] = version.split('.');

0 commit comments

Comments
 (0)