awesome-cordova-plugins/scripts/docs/dgeni/processors/mark-properties.js
2020-05-16 14:40:49 +02:00

17 lines
423 B
JavaScript

'use strict';
module.exports = function markProperties() {
return {
name: 'mark-properties',
$runBefore: ['rendering-docs'],
$process: docs =>
docs.map(doc => {
for (let i in doc.members) {
if (doc.members.hasOwnProperty(i) && typeof doc.members[i].parameters === 'undefined') {
doc.members[i].isProperty = true;
}
}
return doc;
}),
};
};