Skip to content

Instantly share code, notes, and snippets.

@titerman
titerman / typescript47-breaking-changes.md
Created August 12, 2022 10:09
Breaking Changes List: TypeScript 3.9 -> TypeScript 4.7

The following breaking changes occurred between the release of TypeScript 3.9 and the release of TypeScript 4.7:

TypeScript 4.0

  • Attempts to override a parent class's accessor with a property declaration now yield an error (4.0).
  • If you enable the --strictNullChecks compiler flag, you have to provide optional arguments for delete operators (4.0)

TypeScript 4.1

  • Users cannot mark abstract members as async (4.1).
  • The resolve() function in a Promise must return a value (4.1).
  • When you enable the --strictNullChecks compiler flag, && expre