DEV Community

Garrone Joseph
Garrone Joseph

Posted on

tsafe: A new assertion function for TypeScript

Three GIFs to convince you that you need tsafe in your life:

Assert thing you know are true, get runtime error if you where wrong:
ex1

Test the type definitions of your APIs:
ex2

Make TypeScript believe whatever you say:

ex3

Here is the repo it you want to learn more.

Top comments (0)