TypeScript Type Guard

Introduction

Use Type Guards to narrow down the type of an object within a conditional block.

Operators

  • [TypeScript in Operator](TypeScript in Operator)

Syntax

  • [TypeScript Literal Type Guard](TypeScript Literal Type Guard)
  • [TypeScript strictNullChecks](TypeScript strictNullChecks)
  • [TypeScript User Defined Type Guards](TypeScript User Defined Type Guards)