Type Coverage Watcher
Track missing type coverage in TypeScript projects to ensure type safety
Install
npm add --save-dev @codechecks/type-coverage-watcher
or
yarn add --dev @codechecks/type-coverage-watcher
Usage
Add to your codechecks.yml file:
checks:
- name: type-coverage-watcher
Under the hood it uses type-coverage package.
API
typeCoverageWatcher(options: Options): Promise<void>
options
interface Options {
tsconfigPath?: string;
name?: string;
}
tsconfigPath
optional string
Default: tsconfig.json
Path to typescript project configuration
name
optional string
Defaults: Type Coverage
Specify the name for check. Might be useful in monorepos.
Contributing
All contributions are welcomed. Read more in CONTRIBUTING.md
Licence
MIT @ codechecks.io