How to validate types in API Requests and Responses?
Hello, I'm wondering how to validate and handle the types in my app's API. I'll use the example found in the docs as an example:
How to add a type validator for the object
Thank you
How to add a type validator for the object
req.json() that throws an error when it doesn't match the User interface and continues with the code if it does?Thank you
