mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
17 lines
423 B
JavaScript
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;
|
|
}),
|
|
};
|
|
};
|