-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Disabling deno-ts(80006)
#27353
Comments
Do you have a reproduction? It shouldn't error for the first one. |
Yes: the source code can be found here. |
Ah, I didn't realize this was just a suggestion from TypeScript. I think we just need a way to disable or filter out certain typescript suggestions (related https://stackoverflow.com/a/77265400/188246). Thoughts, @nayeemrmn? |
Seems like an upstream issue. Is there a way of disabling it with ts server that doesn't work here? |
#27373 will implement |
I often see this diagnostic in functions that return a promise:
I believe this is a mistake / should be something end developers can disable.
For instance, the following JS is valid:
However, I still see the diagnostic. And it suggests the following refactor:
I prefer the initial version. Can I / how might I get the Deno LS to stop including this diagnostic?
The text was updated successfully, but these errors were encountered: