Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[api-extractor] Will strip declare var content after rollup types #5146

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

Open
qmhc opened this issue Mar 3, 2025 · 0 comments
Open

[api-extractor] Will strip declare var content after rollup types #5146

qmhc opened this issue Mar 3, 2025 · 0 comments

Comments

@qmhc
Copy link

qmhc commented Mar 3, 2025

Summary

https://stackblitz.com/edit/vitejs-vite-ldof7q7z?file=package.json

Repro steps

Run pnpm run build, then check the declaration file under dist.

Expected result: No type error.

Actual result: Get an error Cannot find name 'obj'.

Details

Will be correct if change var to let.

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/api-extractor version? 7.51.1
Operating system? Linux
API Extractor scenario? rollups
Would you consider contributing a PR? No
TypeScript compiler version? 5.7.2
Node.js version (node -v)? 18.20.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs triage
Development

No branches or pull requests

1 participant