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:

Test the type definitions of your APIs:

Make TypeScript believe whatever you say:


Here is the repo it you want to learn more.

Discussion (0)