Skip to main content

Introduction to TypeScript

Strict Mode

0:00
LearnStep 1/2

Strict Compiler Options

Strict Mode

Strict mode enables a set of type-checking options that catch more errors.

json

What Strict Mode Enables

  • strictNullChecks: null/undefined are distinct types
  • strictFunctionTypes: stricter function parameter checking
  • strictPropertyInitialization: class properties must be initialized
  • noImplicitAny: error on implicit any type
  • noImplicitThis: error on implicit this
typescript