Projects / Programming languages / Intermediate

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

☆ Read later

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.

Report a problem with this project

Log in to send a report.

What to build next

← Back to all projects