'Ignore type errors on a whole module (and ideally submodules)
I am working on a Typescript project and I want to import (ES6 style) a module from another, older project.
The older project was built using a far less strict tsconfig file and while it works fine it is throwing up a lot of errors when I import it into the new project which has a much more strict config.
The errors are all relating to stuff being untyped or possibly null, and don't actually stop the code working.
Is there a module-wide version of @ts-ignore that I can use or some way that I can suppress errors from all files in a certain location?
I know the code works, it is just a little sloppier than the current tsconfig wants to allow and I'm not able to get into properly fixing it at this point.
Alternatively, is there an easy way to relate TS error codes to a config rule that can turn them off?
If I get an error TS2322 - Type '{0}' is not assignable to type '{1}' I assume there is a rule that I can add to my config to suppress this but how can I find out what that rule is?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
