Skip to content
JS

Learn Intermediate TypeScript: Type Narrowing

Course on Codecademy

View on Codecademy (opens in a new tab)
1 h
LengthProvider's estimate
Intermediate
LevelProvider's label
1
Lessons
Apr 2024
Published30 Apr 2024

About this course

Description from Codecademy

About this course Master the art of type narrowing in TypeScript with this intermediate course. You'll learn how TypeScript does type narrowing at runtime, create user-defined type guards, and utilize appropriate operators such as typeof and in when writing type guards. With hands-on exercises and practical examples, you'll gain a deep understanding of type narrowing techniques and how they can help you write cleaner, more efficient code. Skills you'll gain Describe how TypeScript does type narrowing at runtime Check variable types with a type guard Utilize the typeof and in operators when writing type guards

Similar TypeScript courses

  1. Intermediate1 h
    Codecademy1Apr 2024
  2. Intermediate1 h
    Codecademy1Apr 2024
  3. Learn TypeScript: Functions

    Codecademy · 1 lessons · Dec 2022

    Beginner1 h
    Codecademy1Dec 2022
  4. Practical Advanced TypeScript

    egghead · Rares Matei · 15 lessons · 4.6 from 56 ratings · Dec 2018

    1 h 3 minSubscription
    egghead154.6 (56)Dec 2018
  5. Advanced Static Types in TypeScript

    egghead · Marius Schulz · 13 lessons · 4.8 from 62 ratings · Nov 2017

    1 h 8 minSubscription
    egghead134.8 (62)Nov 2017
  6. Use Types Effectively in TypeScript

    egghead · Ari Picker · 10 lessons · 4.3 from 86 ratings · Sept 2016

    30 minSubscription
    egghead104.3 (86)Sept 2016
  7. Get Up and Running with TypeScript

    Coursera · Harrison Kong · Mar 2021

    Beginner2 h
    CourseraMar 2021
  8. TypeScript Arrays

    Coursera · Chaitra Deshpande · May 2021

    Intermediate2 h
    CourseraMay 2021

A hyphen means the provider's catalogue does not state the value.

Same topic, nearest in length, up to three from any one provider.

Data read from the Codecademy catalogue on 28 Nov 2026. How the data is collected.

    Compare