docs(barcodeScanner): hide private methods

This commit is contained in:
mhartington 2016-07-05 14:52:21 -04:00
parent f2f3741819
commit ef960c8aec
No known key found for this signature in database
GPG Key ID: C0CE5F60E890DB47
2 changed files with 14 additions and 6 deletions

View File

@ -5,15 +5,20 @@ module.exports = function removePrivateMembers() {
$runAfter: ['tags-parsed'], $runAfter: ['tags-parsed'],
$runBefore: ['rendering-docs'], $runBefore: ['rendering-docs'],
$process: function(docs) { $process: function(docs) {
docs.forEach(function(doc){ docs.forEach(function(doc) {
if (doc.members) { if (doc.members) {
doc.members = doc.members.filter(function(member){ doc.members = doc.members.filter(function(member) {
return !member.tags.tagsByName.get("private"); return !member.tags.tagsByName.get('private');
}) });
} }
}) if (doc.statics) {
doc.statics = doc.statics.filter(function(staticMethod) {
return !staticMethod.tags.tagsByName.get('private');
});
}
});
return docs; return docs;
} }
} };
}; };

View File

@ -27,6 +27,9 @@ import {Plugin, Cordova} from './plugin';
}) })
export class BarcodeScanner { export class BarcodeScanner {
/**
* @private
*/
static Encode: any = { static Encode: any = {
TEXT_TYPE: 'TEXT_TYPE', TEXT_TYPE: 'TEXT_TYPE',
EMAIL_TYPE: 'EMAIL_TYPE', EMAIL_TYPE: 'EMAIL_TYPE',