0Pricing
TypeScript Academy · Lesson

TypeScript 5.5+: Isolated Declarations and Beyond

Understand isolatedDeclarations and recent performance wins.

TypeScript 5.5 Overview

TypeScript 5.5 (June 2024) introduced inferred type predicates, isolated declarations support, regex syntax checking, and significant editor performance improvements.

// npm install typescript@5.5

Inferred Type Predicates

TS 5.5 can now automatically infer is type predicates from function bodies that narrow a parameter, without requiring an explicit annotation.

// Before 5.5: had to annotate manually
function isString(val: unknown): val is string {
  return typeof val === "string";
}

// After 5.5: TypeScript infers the predicate automatically
function isString(val: unknown) {
  return typeof val === "string";
}
// Inferred: (val: unknown) => val is string

All lessons in this course

  1. TypeScript 5.0: Decorators Standard and const Type Params
  2. TypeScript 5.1-5.2: Improved Inference
  3. TypeScript 5.3-5.4: New Narrowing and NoInfer
  4. TypeScript 5.5+: Isolated Declarations and Beyond
← Back to TypeScript Academy