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...
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?
-
-
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)
-
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!
- 2 more replies
New conversation -
-
-
My concrete example is that I'm exposing some global types that using the reference comment get available on the scope, but on webstorm I get an hint to include the type itself but this isn't correct because then there's 2 instances (and not the Singleton I'm looking for).
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.