Skip to content

Update typescript to latest version - #1544

Open
zorkow wants to merge 2 commits into
developfrom
update/typescript
Open

Update typescript to latest version#1544
zorkow wants to merge 2 commits into
developfrom
update/typescript

Conversation

@zorkow

@zorkow zorkow commented Aug 7, 2026

Copy link
Copy Markdown
Member

PR updates typescript to the latest version 7.0.2.

  • Adapts the configuration files to work with changes already introduced in TS6.
  • Intermediate solution for eslint and typedoc

Changes to Configuration Files

All changes are in tsconfig/ and mainly missing rootDir. Changes to other compiler options thanks to DuckAI. Summary table thanks to Claude.

File Change
common.json Dropped removed baseUrl / downlevelIteration. Added "strict": false — TS7 defaults strict to true, which leads to 1672 type errors.
mjs.json Added explicit "rootDir": "../ts" (TS7 requires it rather than inferring it).
cjs.json Added explicit "rootDir": "../ts". target changed ES5ES2015 (ES5 emit target was removed in TS7).
worker.json Added "rootDir": "../ts/a11y/sre".
worker-cjs.json Added "rootDir": "../ts/a11y/sre". moduleResolution changed node (→ legacy node10, removed) → bundler.
components.json Added "rootDir": "../components/mjs".

Work around for linting and typedoc

Since TS7 does not yet expose an API yet, we use the dual approach suggested in
https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/#running-side-by-side-with-typescript-6.0
which allows both typescript-eslint and typedoc to run using TSv6.0.2.

Issues to follow for updates

(Links quoted to not make noise on the trackers.)

For typedoc
https://github.com/TypeStrong/typedoc/issues/3098

For typescript-eslint
https://github.com/typescript-eslint/typescript-eslint/issues/10940

@zorkow
zorkow requested a review from dpvc August 7, 2026 13:45

@dpvc dpvc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried it and it seems to work well. Compiling seems faster, though I haven't done any formal testing. Thanks for working this out.

Base automatically changed from update/packages to develop August 12, 2026 11:18
@dpvc dpvc added this to the v4.2 milestone Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants