Is it possible to make //ts-expect-error
directive only cover a concrete error and not others?
Example of code I would like to silent but only for some kind of error:
Error TS2588
Error TS2339
I would expect something like ESLint does with rules: //@ts-expect-error TS2339
to only silent errors of that kind, for example.
It's not currently possible - this has been a long standing request; one of the underlying issues is that the error codes are moving targets, as they're not meant to be used for explicit referencing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With