You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API Extractor's d.ts rollup removes the "as" from imports and renames the references to those imports, but this can cause issues, such as when those types are used in generics.
error TS2313: Type parameter 'Action' has a circular constraint.
Details
I would expect it to either leave the imports named as they are (and if there are duplicates of those imports, oh well), or to find a common name for all of them that does not cause issues (which seems more difficult)
Standard questions
Please answer these questions to help us investigate your issue more quickly:
Question
Answer
@microsoft/api-extractor version?
7.31.2
Operating system?
Mac
API Extractor scenario?
rollups (.d.ts)
Would you consider contributing a PR?
No
TypeScript compiler version?
"Analysis will use the bundled TypeScript version 4.7.4"
Node.js version (node -v)?
14.18.1
The text was updated successfully, but these errors were encountered:
API Extractor's d.ts rollup removes the "as" from imports and renames the references to those imports, but this can cause issues, such as when those types are used in generics.
Repro steps
If I have something in my code like
api extractor's d.ts rollup will change it to
which is a typescript error
Details
I would expect it to either leave the imports named as they are (and if there are duplicates of those imports, oh well), or to find a common name for all of them that does not cause issues (which seems more difficult)
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: