1×
Become a member
to unlock all features

Create egghead account to access 5000+ tutorials and resources from expert developers.

Create account
Autoplay

    Understand TypeScript’s Control Flow Based Type Analysis

    typescriptTypeScript
    ^2.0.0

    The TypeScript compiler analyzes the control flow of your program to determine the most precise type for a variable at any given location.

    This lesson shows control flow based type analysis in action and explains how type guards and jumps in control flow affect the type that is inferred.