mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
14 lines
523 B
JavaScript
14 lines
523 B
JavaScript
var Entry = require('docdown/lib/entry'),
|
|
getUpdatedDesc = require('./description'),
|
|
getReorderedParams = require('./parameters'),
|
|
getReorderedExample = require('./example');
|
|
|
|
/**
|
|
* Updates `docdown` `Entry`'s prototype so that parameters/arguments are reordered according to `mapping`.
|
|
*/
|
|
module.exports = function applyFPMapping(mapping) {
|
|
Entry.prototype.getDesc = getUpdatedDesc;
|
|
Entry.prototype.getParams = getReorderedParams(mapping);
|
|
Entry.prototype.getExample = getReorderedExample(mapping);
|
|
};
|