YodaHut
Sign InSign Up
Menu
  • Home
  • Explore
My Learning
  • Continue Learning
  • Liked Videos
  • Learn Later Courses
  • Learn Later Videos
  • Learn History
Creator
  • Tutor Dashboard
  • My Courses
  • My Videos
  • Create Course
  • Notifications
  • Settings
  • Feedback
  • Contact Us
Library/TypeScript for Beginners: Types, Interfaces, Classes and Generics/Lesson 12 of 26

Union Types

14:49
Hitesh Choudhary
© Hitesh ChoudharyCurated by YodaHut. These lessons are hosted on YouTube and produced by their original creators, who are not affiliated with YodaHut. You still earn YodaCoins, keep your streak and track progress here.

My Notes (0)

Sign in to take timestamped notes, earn YodaCoins and keep your streak.

No notes yet. Notes are private to you and jump the video to the moment you wrote them.

Course Contents

  1. 1Why Learn TypeScript6:52
  2. 2What TypeScript Really Is8:23
  3. 3Installing TypeScript12:14
  4. 4Introduction to the TypeScript Docs11:54
  5. 5Number, Boolean and Type Inference7:37
  6. 6Why You Should Avoid any4:44
  7. 7Functions in TypeScript11:31
  8. 8Writing Functions Better in TypeScript12:43
  9. 9Object Typing Pitfalls9:48
  10. 10Type Aliases7:19
  11. 11Readonly and Optional Properties9:51
  12. 12Union Types14:49
  13. 13Tuples9:53
  14. 14Interfaces9:55
  15. 15Interface vs Type5:22
  16. 16Public and Private Members6:13
  17. 17Getters and Setters7:19
  18. 18Protected Members4:15
  19. 19Abstract Classes9:37
  20. 20Introduction to Generics12:28
  21. 21Generics with Arrays and Arrow Functions8:15
  22. 22Generic Classes11:15
  23. 23Type Narrowing9:54
  24. 24instanceof and Type Predicates9:24
  25. 25Discriminated Unions and Exhaustiveness Checking with never11:24
  26. 26Course Wrap-Up3:31
Lessons by Hitesh Choudhary on YouTube. Curated by YodaHut — we didn't make this content.
YodaHut

Learn new skills, advance your career, and achieve your goals with our comprehensive online courses.

Quick Links

  • Privacy Policy
  • Copyright Policy
  • Disclaimer Policy
  • Terms & Conditions

Support

  • Teach at Yodahut
  • Feedback
  • Contact Us
  • Sitemap

Language

© 2026 YodaHut. All rights reserved.