mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
16 lines
401 B
JavaScript
16 lines
401 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;
|
||
|
})
|
||
|
}
|
||
|
};
|