mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-25 14:26:29 +00:00
17 lines
447 B
JavaScript
17 lines
447 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Exclude given access levels from the generated documentation: this allows
|
|
* users to write documentation for non-public members by using the
|
|
* `@private` tag.
|
|
*
|
|
* @name access
|
|
* @public
|
|
* @param {Array<String>} [levels=[private]] excluded access levels.
|
|
* @return {stream.Transform}
|
|
*/
|
|
module.exports = function (levels, comment) {
|
|
levels = levels || ['private'];
|
|
return levels.indexOf(comment.access) === -1;
|
|
};
|