TSConfig
suppressExcessPropertyErrors
This disables reporting of excess property errors, such as the one shown in the following example:
tsTry
typePoint = {x : number;y : number };constObject literal may only specify known properties, and 'm' does not exist in type 'Point'.2353Object literal may only specify known properties, and 'm' does not exist in type 'Point'.p :Point = {x : 1,y : 3,: 10 }; m
This flag was added to help people migrate to the stricter checking of new object literals in TypeScript 1.6.
We don’t recommend using this flag in a modern codebase, you can suppress one-off cases where you need it using // @ts-ignore
.