Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Codecademy

Learn TypeScript: Union Types

via Codecademy

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Combine individual types into flexible combinations with union types.
Continue your TypeScript learning journey with Learn TypeScript: Union Types. Union types help strike a balance between extreme specificity and being totally unspecific with our types. Combine individual types into flexible combinations with union types.



### Skills you’ll gain
* Combine multiple types using unions.
* Narrow down methods and properties available in a program with type narrowing.
* Define states within the program using literal types and unions.

### Notes on prerequisites
We recommend that you complete [Learn TypeScript: Complex Types](https://www.codecademy.com/learn/learn-typescript-complex-types) before starting this course.

Syllabus

  • Union Types: TypeScript union types allow us to combine individual types into flexible combinations.

    • Lesson: Union Types
    • Quiz: Union Types
    • Project: Unionversity
    • Informational: Next Steps

Taught by

Kenny Lin

Reviews

4.8 rating at Codecademy based on 28 ratings

Start your review of Learn TypeScript: Union Types

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.