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

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

Ansible warning on jinja2 braces on when -

html - How to custom Bootstrap grid height? -