Assert things you know to be true, and get runtime errors when you are wrong about those assertions.
Assert things you know to be true, and get runtime errors when you are wrong about those assertions.
Test the type definitions of your API's
Make typescript believe what ever you say