-
Notifications
You must be signed in to change notification settings - Fork 622
[api-extractor] Support Typescript 5.4 #4581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@octogonz has handled these in the past, although I'm sure he'd appreciate some help! |
I read the Announcing TypeScript 5.4 release notes, and none of those changes sound like they would impact API Extractor's ability to analyze .d.ts files. 👍 Let me create a PR to upgrade the version and we'll see if any internal APIs got broken. |
The However I still need to investigate why it didn't appear in the .d.ts rollup prior to TypeScript 5.4. |
The compiler was improved to avoid emitting these parameter destructuring aliases in TypeScript 4.8 (576d198 in our repo), however that turned out to cause regressions in some edge cases, thus TypeScript 5.4.2 reverted this change with microsoft/TypeScript#57020. (Interestingly, the TypeScript maintainers thought these edge cases probably could be handled, however the computational cost would not have justified the benefit. Of course, API Extractor has different requirements from a compiler, e.g. if we were motivated we could consider implementing this feature for .api.md and .api.json but not the .d.ts rollup.) In short, the diff in 05c3afa is by design. |
Summary
After upgrading a project to latest Typescript version (
5.4.2
), can't run API Extractor any more as it requires a toolchain Typescript older than 5.3.3.As stated in docs opening an issue to request the Typescript version update 😃
The message for sake of completeness:
Repro steps
N/A
Details
N/A
Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/api-extractor
version?node -v
)?The text was updated successfully, but these errors were encountered: