New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@codechecks/type-coverage-watcher

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codechecks/type-coverage-watcher

Track missing type coverage in TypeScript projects to ensure type safety

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

codechecks.io

Type Coverage Watcher

Track missing type coverage in TypeScript projects to ensure type safety

Build Status Software License codechecks.io

Install

npm add --save-dev @codechecks/type-coverage-watcher

Usage

Are you new to codechecks? Check out getting started guide (it's simple)!

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; //defaults to tsconfig.json
  name?: string; // defaults to Type Coverage
  ignoreFiles?: string[];
  ignoreCatch?: boolean;
  atLeast?: number;
  strict?: boolean;
}
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.

ignoreFiles

optional string[]

Defaults: undefined

Specify the ignored for checks files.

ignoreCatch

optional string

Defaults: undefined

See type-coverage's description for the reference.

atLeast

optional number

Defaults: undefined

Example: atLeast: 99

Fail if coverage rate < this value.

strict

optional string

Defaults: undefined

See type-coverage's description for the reference.

Contributing

All contributions are welcomed. Read more in CONTRIBUTING.md

Licence

MIT @ codechecks.io

Keywords

type-coverage

FAQs

Package last updated on 03 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts