-
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
isolatedDeclarations
not giving related errors under noEmit
#59024
Comments
Debugging, Disabling the noEmit skip there fixes the issue, but then has weird knock-on effects. I haven't been able to solve. My test has been pushed to https://github.com/jakebailey/TypeScript/tree/fix-59024 (it doesn't work in a regular compiler test since we always emit). @sheetalkamat Do you have any ideas as to how to fix this? |
Will take a look. |
This is not a regression. We never reported |
Not a regression, no, but I feel like we need to do something here because we're offering up these diagnostics in the editor regardless of noEmit, but then you can get a passing result at the CLI or similar which seems really, really weird? |
These diagnostics are offered when "emitting". Eg if you ran this code with "--noCheck" you will get that error. So its just where the error gets reported. It was modeled so that we are not doing extra pass .. so dts diagnostics are always reported when emitting dts file. (only excpetion is |
Specifying |
π Search Terms
"isolated declarations", "isolated declarations noEmit"
π Version & Regression Information
β― Playground Link
No response
π» Code
π Actual behavior
tsc --noEmit --isolatedDeclarations
doesn't report any error, even thoughtsc --isolatedDeclarations
does (vscode does too)π Expected behavior
tsc --noEmit --isolatedDeclarations
reports the error, just like it does without the--noEmit
flagAdditional information about the issue
tsconfig used:
The text was updated successfully, but these errors were encountered: