Skip to content

[api-extractor] Update TypeScript version from 5.4.2 to latest #5052

Open
@jawj

Description

@jawj

Summary

I'm using the latest TypeScript version. When I run api-extractor, I see this:

Analysis will use the bundled TypeScript version 5.4.2
*** The target project appears to use TypeScript 5.7.2 which is newer than the bundled compiler engine; consider upgrading API Extractor.

I then get various errors related to the TypeScript version being out of date, such as:

Warning: node_modules/subtls/index.d.ts:207:49 - (TS2315) Type 'Uint8Array' is not generic.

I can point api-extractor to the 5.7.2 type definitions, but of course it doesn't fully understand these, because it's too old.

I note this in the docs:

If the issue is that your toolchain uses a newer compiler release than API Extractor's engine, please open a GitHub issue requesting to upgrade API Extractor's compiler. We try to stay as current as possible.

So here's the issue!

Metadata

Metadata

Assignees

Labels

priorityThe maintainers consider it to be an important issue. We should try to fix it soon.upgradeA component is outdated and needs to be upgraded

Type

No type

Projects

Status

High priority

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions