6 comments
Comment actions Permalink

Completion for promise functions doesn't work because of a tricky way this module is defined. As a workaround I'd suggest using 'bluebird' typescript stubs:

bluebird.png

0
Comment actions Permalink

Can you give a link to something explaining how to use bluebird typescript types?

0
Comment actions Permalink

I also ask, because I'm seeing similar issues with
-should
-all my model classes imported from Sails.

0
Comment actions Permalink

sorry, don't understand what explanation you are looking for... Webstorm is just using TypeScript definitions to give intellisence for JavaScript.See http://blog.jetbrains.com/webstorm/2014/07/how-webstorm-works-completion-for-javascript-libraries/

0
Comment actions Permalink

Well can you describe how I do this from your earlier comment?  "As a workaround I'd suggest using 'bluebird' typescript stubs: "

0
Comment actions Permalink

Download the stubs per instructions in the blog post: in Settings/languages & Frameworks/JavaScript/Libraries, press Download, select 'Typescript community stubs' in the combobox, then choose bluebird' from the stubs list. What is unclear?

0

Please sign in to leave a comment.