Get parameter hints for JSDoc documented function expressions
Please consider this little snippet:
const r = require('rethinkdb');
const util = require('util');
/**
* @function createTable
*
* Creates a table
*
* @param {string} database
* @param {string} tableName
* @return {Promise}
*/
const createTable = util.promisify(function(database, tableName, callback) {
r.db(database).tableCreate(tableName).run(connection, callback);
});
My problem is: although I have properly annotated createTable with JSDoc comments, it does not seem to be recognized as a function by the IDE. There is no parameter hinting, and when auto-completing it does not even insert a pair of parentheses. Curiously enough, Quick Documentation shows the parameters just fine.
Am I missing something? Is there any other way to make the IDE understand that createTable is function?
Please sign in to leave a comment.
Logged as https://youtrack.jetbrains.com/issue/WEB-32429, please vote for it to be notified on any progress