A library aimed to aid testing of TypeScript definitions. Checks TypeScript files for syntactic, expected and unexpected semantic (type) errors.
Installation
$ npm install -D typings-tester
Any version of TypeScript must be installed separately.
CLI Usage
$ typings-tester --config path/to/tsconfig.json **/*.ts
$ typings-tester --dir path/to/directory
API Usage
;; test'typings', ;
Flags
typings:expect-error
: expect next line or block to contain semantic error.typings-tester
will fail if no error is produced.
// typings:expect-error
What's next
- Testing against multiple versions of TypeScript
- Inferred type assertions