Projects / Intermediate

🛡️ Take in an API response with both types and a runtime check

What you end up with

A function that takes an API response as unknown, checks its shape and turns it into Course[]. You can see how many rows were rejected, and when status grows the compiler lists the places that need fixing.

🔒

Create a free account to read this project

Sign up for a free membership to read every free project. Already have an account? Please sign in.

Other projects

← Back to all projects