angular-cn/aio/tools/transforms/angular-api-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;
}
});
}
};
};