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
JetBrains can still infer the type using require in both ts and js files.
Projects that use TS will most likely be using more modern JS syntax with import anyway.
I think we can close it as it's a VS Code issue for a very niche use case.
What is the bug?
Coming from #803 (comment). VSCode resolves types when
import
, but notrequire
.How can one reproduce the bug?
Check out https://github.com/dblock/opensearch-node-client-demo. Toggle between
import
andrequire
in the demo.What is the expected behavior?
VSCode should be resolving types all the time.
What is your host/environment?
Visual Studio Code w/ TypeScript.
Do you have any screenshots?
TODO
Do you have any additional context?
Seems to work with JetBrains.
The text was updated successfully, but these errors were encountered: