←
TypeScript428 posts
TypeScript avatar

TypeScript

@typescript

TypeScript is a language for application-scale JavaScript development. It's a typed superset of JavaScript that compiles to plain JavaScript.

◷ Joined September 2012▧ 52 Photos and videos
TypeScript avatar
TypeScript@typescript·Jul 8

We know people will still need TS 6 for API usage. That's why there's a new `@typescript/typescript6` package that provides - the TypeScript 6 API - a separate `tsc6` binary Install it side-by-side with TypeScript 7, and don't worry about conflicts with `tsc`.

TypeScript avatar
TypeScript@typescript·Jul 8

TypeScript 7 also brings parallelism with new 🧪 experimental 🧪 flags to tweak it. `--checkers` controls the number of type-checking workers, while `--builders` controls concurrent project builds. Use more on powerful machines, or scale down to fewer to control memory usage.

TypeScript avatar
TypeScript@typescript·Jul 8

Under both `--watch` and in the editor, TypeScript 7 also now periodically releases unused type-checking state after enough idle time. For bigger projects, this should help reduce memory usage after peaking.

TypeScript avatar
TypeScript@typescript·Jul 8

TypeScript 7 also ships a new `--watch` mode based on a Go port of Parcel's watcher. This brings more efficient and reliable file watching to TypeScript users across platforms. If you tried earlier versions of TS7, you can expect way less CPU usage on idle with `--watch`.

TypeScript avatar
TypeScript@typescript·Jul 8

With this new version, TypeScript officially supports the language server protocol (LSP). So just pick your favorite editor and enjoy the speed improvements!

TypeScript avatar
TypeScript@typescript·Jul 8

TypeScript 7 has all the editor features you love, like auto-imports, find-all-references, expandable hovers, inlay hints, code lenses, linked editing, semantic highlighting, import sorting, and more. They're just a lot faster now.

TypeScript avatar
TypeScript@typescript·Jul 8

The new codebase has been battle-tested by many teams (and entire companies) using it in production for over a year now. In fact, in the editor TypeScript 7 is *more* stable than TypeScript 6, with fewer crashes and lower memory usage.

TypeScript avatar
TypeScript@typescript·Jul 8

The 10x is real for many projects, and the speed improvements make a huge difference for teams at scale. TypeScript 7 drops time in CI, and minimizes delays in editors like VS & VS Code. That makes every part of the developer inner loop feel snappy.

Post attachmentPost attachment
TypeScript avatar
TypeScript@typescript·Jul 8

It's simple to get started npm install -D typescript@7 Then run `npx tsc` as usual for a new native experience.