-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Ambient reference silently included in all files #58911
Comments
Reference directives are just another way to include a file in a project; they do not have the power to make ambient types only visible in a single file. |
Thank you for your answer. The existing documentation does not make that clear. What can I use to reference specific ambient types per .js file (that uses JSDoc syntax)? |
There isn't a way to do that; you'd need separate tsconfigs |
This issue has been marked as "Question" and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
π Search Terms
ambient reference
π Version & Regression Information
β― Playground Link
https://github.com/cuttin-n-pastin/tsjsdocref-repro
π» Code
[package.json]
[tsconfig.json]
[types/index.d.ts]
[f1.js]
[f2.js]
π Actual behavior
π Expected behavior
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: