.jade, .pug intellisense for passed in objects?
When I create a basic express app and open index.jade webstorm says "unresolved variable message" etc
extends layout
block content
h1= message
h2= error.status
pre #{error.stack}
Is there a way to do some kind of a jsdoc hint to tell intellisense what message, error are?
Please sign in to leave a comment.
well... you can probably insert inline JSdoc (like /** <typename> */message - see examples in https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler, under both "@param" and "@return" halfway down the page). But I'm not actually sure what type name to use for properties of an object literal passed to render() function...