javascript - Can I reference a param type in JSDoc @return? -


i document function return type depends on supplied parameter:

/** * @param {*} x thing * @return {????} thing in array */ function arrayof(x) { return [x]; } 

is possible name or otherwise reference actual type of function param, can use specify return?


Comments

Popular posts from this blog

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

node.js - Node js - Trying to send POST request, but it is not loading javascript content -