angular-cn/aio/transforms/angular.io-package/processors/markBarredODocsAsPrivate.js

14 lines
332 B
JavaScript

module.exports = function markBarredODocsAsPrivate() {
return {
$runAfter: ['readTypeScriptModules'],
$runBefore: ['adding-extra-docs'],
$process: function(docs) {
docs.forEach(doc => {
if (doc.name && doc.name.indexOf('ɵ') === 0) {
doc.privateExport = true;
}
});
}
};
};