TypeScript: runtime contracts and generics
Validate real inputs and preserve types through reusable transformations.
Prerequisite: TypeScript after JavaScript · 50 minutes of guided study
2 published lessons, from first principles to a small project.
Start first lesson →What you’ll be able to do
- A generic can preserve the item type across a transformation.
How to study this course
Follow the numbered modules. Read the example, explain why it works, attempt the exercise, then compare your result with the supplied checks.
Setup: A modern browser. JavaScript, TypeScript, Python and SQLite exercises run here; project workshops state their additional setup.
Times estimate guided reading and practice. Projects and revision can take longer.