Suppressing certain errors e.g. TS7017 in tsconfig.json

Lonely picture Lonely · Sep 21, 2016 · Viewed 9.1k times · Source

Is it possible, if yes, how? I want to achieve something like (e.g., in the compilerOptions in tsconfig.json):

// ATTENTION PSEUDO CODE
suppressErrors: ['TS7017', ....]

p.s. TS7017: Index signature of object type implicitly has an 'any' type.

EDIT: FYI, I would like to suppress any desired error; TS7017 is only an example.

Answer

basarat picture basarat · Sep 22, 2016

Suppressing certain errors

There is no option for that at the moment. I've created an issue to track it : https://github.com/Microsoft/TypeScript/issues/11051