Hi @WebStormIDE I can't seem to find a way to have:
/// <reference types="..." />
working on a #JavaScript project? The goal is like with other IDE's
to have definitions available for types that are not expected to be imported on my script...
-
-
Replying to @pml0pes
Hi, WebStorm can use d.ts files located anywhere in your project or configured via JavaScript Libraries to provide completion in JavaScript. Do you want to import specific type definitions to specific files?
2 replies 0 retweets 0 likes -
Replying to @WebStormIDE
Some more info, the d.ts I'm trying to refer is: https://github.com/reactiverse/es4x/blob/develop/pm/src/main/resources/META-INF/es4x-commands/es4x.d.ts … So I can get proper type info on graaljs builtins and a global Singleton (vertx)
1 reply 0 retweets 0 likes -
Replying to @pml0pes
Sorry, we still didn't get it :( Can you please share an example showing these 2 instances and what exactly works not as expected? Thank you!
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE
Ok here's the basic project: https://github.com/reactiverse/es4x/tree/develop/examples/simple … And a screenshot how vscode behaves vs WebStorm In my example the correct way is vscode and the inspection I get from WebStorm is not correct. "vertx" is a global and it's defined on the "es4x.d.ts"pic.twitter.com/S3CVF00TCN
1 reply 0 retweets 0 likes
Thanks for sharing a sample project. Please follow this issue for updates: https://youtrack.jetbrains.com/issue/WEB-42699 In the meantime, you can disable the warning - press Alt-Enter, then arrow right, Disable inspection.pic.twitter.com/71h5UVyCmk
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.