RequireJS: Allow code completion

I have this very simple AMD module and I want to map 'N' to an external library named SuiteScript 2.0 to make use of code completion:

Is this possible? Are there any plugins that can help on this? Ideally, there must be a preference that will allow you to do something like this:

2 comments

what do you mean by external library? Where is it located? From Require.js docs (https://requirejs.org/docs/api.html#config-paths), paths value should be a path relative to baseUrl (or .html file if it's omitted) unless you specify a protocol (http://) to load module from CDN. Note that WebStorm can't resolve libraries from CDN links, you need to have all libraries available in your project

0

The external libraries came from a plugin. Looks like I found the solution: use JSDoc properly

1

Please sign in to leave a comment.