RealJS
  • Start Here
  • Learn JavaScript
    Start Learning
    Your Learning Plan →Your personalized JavaScript learning plan Learning Paths →Guided study plans for accelerated learning Tutorials →In-depth articles on JavaScript topics Courses →Step-by-step lessons that build a skill
    Get Help
    Mentor AI →NewYour personal JavaScript mentor
    Practice
    Coding Exercises →Write code and get instant feedback Quizzes →Check your learning progress
    Resources
    Reference →Concise definitions for JavaScript terms Browse Topics →Focus on a specific area or skill level Cheat Sheets →Key syntax and patterns at a glance
    Unlock All Content →Get unlimited access to everything on RealJS
  • Search
/
  • Join
  • Sign‑In

Modeling Data With TypeScript (Quiz)

Stephen Gruppetta
Modeling Data With TypeScript: Unions, Narrowing and Impossible States Stephen Gruppetta 08:00
Course Slides (.pdf) Sample Code (.zip)
Ask a Question
  • Contents
  • Discussion

Become a Member to take the quiz.

Become a Member to join the conversation.

Course Contents

Overview
90%
  • Modeling Data With TypeScript (Overview) 02:03
    Naming Shapes With type and interface 27:30
    Exercise: Name the Boats and Crew 14:30
    Writing Union Types 23:00
    Pinning Options With Literal Types 04:13
    Exercise: Type the Timetable 12:00
  • Narrowing a Union Branch by Branch 03:39
    Narrowing Objects, Dates and Lists 12:30
    Exercise: Format the Harbor Notices 16:00
    Comparing Types by Shape 27:30
  • Giving Each State Its Own Type 31:00
    Handling Every Case With never 03:40
    Exercise: Model the Boat Status 13:00
    Handling Missing Values 26:00
    Exercise: Find a Passenger's Booking 11:00
  • Project: Harbor Line's Departures and Bookings 23:30
    Exercise: Model Crossings and Tickets 18:00
    Exercise: Write the Departures Board 18:00
    Exercise: Handle a Missing Crossing 18:00
    Exercise: Add the Full State 18:00
    Explain Your Harbor Line Types 31:30
  • Modeling Data With TypeScript (Quiz) 08:00
    Modeling Data With TypeScript (Summary) 01:47

© 2026 RealJS ⋅ Privacy Policy