Closed CalebM1987 closed 3 years ago
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.
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 theloadModules()
syntax with JavaScript and TypeScript support. To use, simple write a list of modules to import, select the text and run the plugin:Here is a preview of it in action:
It will support both the
async/await
pattern as well as using apromise
: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.