Track missing type coverage in TypeScript projects to ensure type safety
npm install @codechecks/type-coverage-watcher

Track missing type coverage in TypeScript projects to ensure type safety
``sh`
npm add --save-dev @codechecks/type-coverage-watcher
Are you new to codechecks? Check out getting started guide (it's simple)!
Add to your codechecks.yml file:
`yml`
checks:
- name: type-coverage-watcher
# ...
Under the hood it uses type-coverage package.
#### options
`typescript`
interface Options {
tsconfigPath?: string; //defaults to tsconfig.json
name?: string; // defaults to Type Coverage
ignoreFiles?: string[];
ignoreCatch?: boolean;
atLeast?: number;
strict?: boolean;
}
##### tsconfigPath
optional stringtsconfig.json
\
Default:
\
Path to typescript project configuration
##### name
optional stringType Coverage
\
Defaults:
\
Specify the name for check. Might be useful in monorepos.
##### ignoreFiles
optional string[]undefined
\
Defaults:
\
Specify the ignored for checks files.
##### ignoreCatch
optional stringundefined
\
Defaults:
\
See type-coverage's description for the reference.
##### atLeast
optional numberundefined
\
Defaults: atLeast: 99
\
Example:
\
Fail if coverage rate < this value.
##### strict
optional stringundefined`
\
Defaults:
\
See type-coverage's description for the reference.
All contributions are welcomed. Read more in CONTRIBUTING.md
MIT @ codechecks.io