Skip to content

Update to TypeScript 7 #1651

@samreid

Description

@samreid

Today, the TypeScript team published this article: https://devblogs.microsoft.com/typescript/progress-on-typescript-7-december-2025/

which says, among other things:

TypeScript’s native previews are fast, stable, and easy to use today – including in your editor.

--incremental and --build mode are also stable and ready to use. So I think we are at a good point to investigate using this for our systems, including but not necessarily limited to:

  • Installing @typescript/native-preview in perennial/package.json
  • Setting up WebStorm to point to this version, see https://blog.jetbrains.com/webstorm/2025/08/webstorm-2025-2/
  • Changing grunt type-check to use tsgo
  • Making sure it is compatible with typescript-eslint, see https://github.com/typescript-eslint/typescript-eslint/issues/10940

The main reason this is worth our time is performance. In number-pairs/, grunt type-check --clean currently takes about 20 seconds on my very fast MacBook Pro M4 Pro. The TypeScript team has reported numbers that we could be somewhere around 10x faster. Faster support in the IDE would also be very welcome.

A secondary reason to upgrade is that it is nice to stay up-to-date with changes to important parts of our toolchain.

I'll add to developer meeting to see if there is more to discuss, to estimate the effort here, and to prioritize.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions