new `esri-loader-typings-helper` plugin for VS Code
CalebM1987 opened this issue · comments
I do not really know where to advertise this, but I just built a handy new extension called esri-loader-typings-helper
for VS Code to autogenerate the loadModules()
syntax with JavaScript and TypeScript support. To use, simple write a list of modules to import, select the text and run the plugin:
["esri/Map", "esri/views/MapView", "esri/layers/FeatureLayer", "esri/config"]
Here is a preview of it in action:
It will support both the async/await
pattern as well as using a promise
:
When used in JavaScript, it behaves the same except excludes the typings for the appropriate constructors:
If you guys think this is worth mentioning in the README
, feel free to advertise it. Otherwise, kindly ignore this enhancement request. The Github repo can be found here for anyone who is interested in contributing/improving.
This is awesome.
This is definitely worth including in the README. To me it fits well under the Advanced Usage section. I would gladly accept a PR for that.
Thanks @tomwayson.
I will create a PR that includes some quick info on it in the Advanced Usage section.