angular-docs-cn/aio/tools/transforms/angular-api-package/processors/markBarredODocsAsPrivate.js

14 lines
332 B
JavaScript
Raw Normal View History

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;
}
});
}
};
};