How to ignore some files when running type checking some files using tsc
In individual files, you can ignore specific lines by adding // @ts-ignore
on the preceding line.
more about it here (// ts-ignore
does not work with .ts files however as of now)
and exclude files/folders using glob patterns in your tsconfig.json
as below as long long as they aren't imported in other files such as in the case of independent unit test files and the like
{ "exclude": [ "**/*.spec.ts" ]}
more about that, here