build: refactor ts-api-guardian jsdoc tag handling (#26595)

Allow the jsdoc tag processing to be configured by
type (export, member, param) and by action (required,
banned, toCopy).

This is a pre-requisite to moving over to using `@publicApi`
tags rather than `@stable` and `@experimental`.

PR Close #26595
This commit is contained in:
Pete Bacon Darwin
2018-10-19 10:44:33 +01:00
committed by Alex Rickabaugh
parent 31022cbecf
commit 2ea57cdcc3
3 changed files with 209 additions and 21 deletions

View File

@ -24,6 +24,9 @@ export function startCli() {
const options: SerializationOptions = {
stripExportPattern: [].concat(argv['stripExportPattern']),
allowModuleIdentifiers: [].concat(argv['allowModuleIdentifiers']),
exportTags: {required: [], banned: [], toCopy: ['deprecated', 'experimental']},
memberTags: {required: [], banned: [], toCopy: ['deprecated', 'experimental']},
paramTags: {required: [], banned: [], toCopy: ['deprecated', 'experimental']}
};
for (const error of errors) {