TypeScript technical articles

TypeScript articles for working developers

Clear explanations of the details that shape real programs.

Explore TypeScript type relationships, inference, declarations, and design choices that affect real APIs.

Latest articles

12 articles

JavaScript emitAug 27, 20266 min read

TypeScript Enums Emit JavaScript Objects

See what numeric, string, and const enums emit, when reverse mappings appear, and when an as-const object is a safer API.

  • enums
  • JavaScript emit
  • API design
TypeScriptAug 11, 20266 min read

Type Narrowing Is Evidence That Expires

How control flow, property checks, callbacks, and user-defined predicates affect TypeScript's view of a value.

  • type narrowing
  • type guards
  • control flow