Type Assertions
Assertions to test your TypeScript types.
Usage
Define a type-tests.ts
file and you can make assertions like:
; ta.assert<ta.Not<ta.Equal<, never>>>;ta.assert<ta.Not<ta.Equal<never,>>>; ta.assert<ta.Not<ta.Equal<,>>>;ta.assert<ta.Not<ta.Equal<,>>>; ta.assert;ta.assert<ta.Not<ta.Extends<any,>>>; ta.assert;ta.assert<ta.Not<ta.UnionIncludesExact<string | number, 'hello'>>>;ta.assert<ta.Not<ta.UnionIncludesExact<number, 'hello'>>>;
When you run the build, you will get errors in typesctipt if any of your assertions are not valid.
License
MIT