Pragmatic AI Labs

TypeScript 7 Type System

Build in-demand skills with a full year of Coursera Plus, now $239. Save now.

Pragmatic AI Labs

TypeScript 7 Type System

Alfredo Deza

Instructor: Alfredo Deza

Included with Coursera PlusLearn more

Gain insight into a topic and learn the fundamentals.
Beginner level

Recommended experience

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Beginner level

Recommended experience

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Annotate values, arrays, tuples and literal unions, and know when inference is enough

  • Model objects with type aliases and interfaces, and narrow unions with runtime checks

  • Handle null, undefined, any, unknown and never safely, and model a typed program

Skills you'll gain

Tools you'll learn

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

November 2026

Assessments

5 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

Build your subject-matter expertise

This course is part of the TypeScript 7 for Beginners Specialization
When you enroll in this course, you'll also be enrolled in this Specialization.
  • Learn new concepts from industry experts
  • Gain a foundational understanding of a subject or tool
  • Develop job-relevant skills with hands-on projects
  • Earn a shareable career certificate

There are 4 modules in this course

You see a type as a description of a value. You annotate strings, numbers and booleans, let the compiler infer the type where it can, and write it yourself for a function's parameters. You type arrays so a wrong item is caught, fix a tuple's length, and make an array read-only. Then you narrow a value to exact choices with literal types and unions, catch a value that isn't allowed, and keep literals with a constant assertion.

What's included

12 videos9 readings1 assignment

You describe the shape of objects. A type alias lists each property and its type, and the compiler reports a missing property, a property that doesn't exist, and an extra property that is really a typo. You compare interfaces with type aliases, extend an interface and combine types with an intersection. Then you mark properties optional or read-only, and read values that might be missing with optional chaining and nullish coalescing.

What's included

10 videos6 readings1 assignment

You let a value be one of several types and learn how the compiler follows your checks. A union of string and number accepts both, but a string method fails on it until you narrow it. You narrow with typeof, with in and instanceof, and with truthiness and equality checks. Then you give each shape a shared tag field, switch on it, and use the never type so the compiler reports a case you forgot to handle.

What's included

10 videos6 readings1 assignment

You handle values that might not be there. Strict null checks report a lookup that can come back undefined, array indexing is unchecked by default, and checked index access closes that gap. You compare the any type, which switches checking off, with unknown, which must be narrowed before use, and use never for impossible states. Finally you model a typed shopping cart with unions and objects, and prove it with its contract check.

What's included

11 videos6 readings2 assignments

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.

Instructor

Alfredo Deza
Pragmatic AI Labs
44 Courses6,236 learners

Offered by

Explore more from Software Development

Why people choose Coursera for their career

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

What brings you to Coursera today?

Frequently asked questions