/**
* Finds JSON References defined within the provided array/object.
*
* @param {array|object} obj - The structure to find JSON References within
* @param {module:JsonRefs~JsonRefsOptions} [options] - The JsonRefs options
*
* @returns {object} an object whose keys are JSON Pointers *(fragment version)* to where the JSON Reference is defined
* and whose values are {@link module:JsonRefs~UnresolvedRefDetails}.
*
* @throws {Error} if `from` is not a valid JSON Pointer
*
* @alias module:JsonRefs.findRefs
*/
var findRefs = module.exports.findRefs = function (obj, options) {
// ...
};
When looking at the static member details for JsonRefs.findRefs it looks like this: .findRefs ⇒ object There are no argument details in the member details. If I separate this into two parts the function argument details are included in the member details: .findRefs(obj, [options]) ⇒ object. Here is an example of the two-part version:
/**
* Finds JSON References defined within the provided array/object.
*
* @param {array|object} obj - The structure to find JSON References within
* @param {module:JsonRefs~JsonRefsOptions} [options] - The JsonRefs options
*
* @returns {object} an object whose keys are JSON Pointers *(fragment version)* to where the JSON Reference is defined
* and whose values are {@link module:JsonRefs~UnresolvedRefDetails}.
*
* @throws {Error} if `from` is not a valid JSON Pointer
*
* @alias module:JsonRefs.findRefs
*/
function findRefs (obj, options) {
// ...
}
module.exports.findRefs = findRefs;
Is this expected? I would think that both versions would generate the same member details.
Let's say I've got the following code:
When looking at the static member details for
JsonRefs.findRefs
it looks like this:.findRefs ⇒ object
There are no argument details in the member details. If I separate this into two parts the function argument details are included in the member details:.findRefs(obj, [options]) ⇒ object
. Here is an example of the two-part version:Is this expected? I would think that both versions would generate the same member details.