-
Notifications
You must be signed in to change notification settings - Fork 609
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
[api-extractor] Missing support for TS 4.9 satisfies
operator
#3890
Comments
Let's upgrade API Extractor's version of TypeScript |
Looking at the TypeScript 4.9 release notes, these are the new features that could potentially cause incompatibilities:
Issues 2 and 3 are only important if we upgrade the entire monorepo at once. If we upgrade API Extractor by itself, then we only need to worry about issue 1. In particular, I have validated that all the API Extractor build tests pass when using TypeScript 4.9. Let me do a little research about auto-accessors and follow up. |
Looking forward to this release, glad to see the issue's got eyes on it :) |
I don't want to bother, but is there anything blocking this? The next version of TypeScript is now out, with new type-level features: https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#support-for-export-type |
@AlCalzone I tried for a while to find a way to reproduce this error, however I could not find any way to get the compiler to emit a That said, API Extractor 7.35.0 was recently released using TypeScript 5.0 (see PR #4103). That should solve your problem and any other issues where new syntax was not parsed by API Extractor. If not, please reopen this issue and provide more detailed repro steps. Thanks! |
Thanks. I can no longer reproduce on 7.35.0. |
Summary
When using the new
satisfies
operator, api-extractor prints a warning- (TS2304) Cannot find name 'satisfies'.
due to its outdated TypeScript dependency.Repro steps
Use api-documenter on TypeScript code that uses the
satisfies
operator.Expected result: No warning or error
Actual result:
- (TS2304) Cannot find name 'satisfies'.
in the generated output.Details
Upgrade TypeScript
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: