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
Post a Comment