awesome-cordova-plugins/scripts/docs/dgeni/processors/mark-properties.js

17 lines
427 B
JavaScript
Raw Normal View History

2020-05-16 20:40:49 +08:00
'use strict';
2017-03-24 10:39:12 +08:00
module.exports = function markProperties() {
return {
name: 'mark-properties',
$runBefore: ['rendering-docs'],
2021-09-28 04:09:05 +08:00
$process: (docs) =>
docs.map((doc) => {
2020-05-16 20:40:49 +08:00
for (let i in doc.members) {
if (doc.members.hasOwnProperty(i) && typeof doc.members[i].parameters === 'undefined') {
doc.members[i].isProperty = true;
}
2017-03-24 10:39:12 +08:00
}
2020-05-16 20:40:49 +08:00
return doc;
}),
};
2017-03-24 10:39:12 +08:00
};