Assertions to test your TypeScript types.
npm install type-assertionsAssertions to test your TypeScript types.
Define a type-tests.ts file and you can make assertions like:
``ts
import * as ta from 'type-assertions';
ta.assert
ta.assert
ta.assert
ta.assert
ta.assert
ta.assert
ta.assert
ta.assert
ta.assert
``
When you run the build, you will get errors in typesctipt if any of your assertions are not valid.
MIT