-
Notifications
You must be signed in to change notification settings - Fork 648
[api-extractor] add support for cts and mts #4196
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
Conversation
@microsoft-github-policy-service agree |
a73820b
to
cae52b1
Compare
Resolved |
cae52b1
to
d7b3146
Compare
Since TS 4.7, two new type declaration extensions have been supported: - `.d.cts` for types from a compilation on `.cts` files - `.d.mts` for types from a compilation on `.mts` files Support has been added for both of these type declarations. I also included two new test packages, demonstrating the full .cts -> .cjs/.d.cts and .mts -> .mjs/.d.mts workflow
d7b3146
to
33591fa
Compare
Updated |
This would be great since there are dts plugins that rely on api extractor and this could really help those of us who publish dual module system packages and need to provide typings for two modules |
@octogonz any feedback on this change? |
I am on vacation, will be back next week |
Hi @octogonz, are you still going to be looking at this? |
…mts-cts # Conflicts: # apps/api-extractor/src/api/ExtractorConfig.ts # build-tests/install-test-workspace/workspace/common/pnpm-lock.yaml
Since TS 4.7, two new type declaration extensions have been supported:
.d.cts
for types from a compilation on.cts
files.d.mts
for types from a compilation on.mts
filesSupport has been added for both of these type declarations. I also included two new test packages,
demonstrating the full
.cts
->.cjs
/.d.cts
and.mts
->.mjs
/.d.mts
workflowFixes #3116