Hasty Briefsbeta

Bilingual

TypeScript 7

3 hours ago
  • #performance
  • #developer-tools
  • #typescript
  • TypeScript 7 is a native port built in Go, offering 8-12x speed improvements on full builds and reduced memory usage.
  • It introduces parallelization with flags like --checkers and --builders, and a new --singleThreaded flag for debugging or limited environments.
  • TypeScript 7 includes a rebuilt --watch mode based on Parcel's file watcher, improving cross-platform efficiency.
  • Editor support is enhanced via LSP, with faster load times, auto-completions, and diagnostics in VS Code, Visual Studio, and others.
  • Compatibility with TypeScript 6.0 is maintained via the @typescript/typescript6 package for side-by-side usage.
  • JavaScript support is reworked for consistency with TypeScript files, removing some legacy JSDoc patterns.
  • Template literal types now preserve Unicode code points, treating characters like emojis as single units.
  • Notable defaults changed in TypeScript 7 include strict mode being true, module defaulting to esnext, and types defaulting to an empty array.
  • Workflows using Vue, MDX, Astro, Svelte, or Angular may not yet leverage TypeScript 7 due to lack of stable API, but CLI usage is possible.
  • The TypeScript team plans to return to feature work, with TypeScript 7.1 expected to introduce a new API and further improvements.