chore: fix doclint issues (#5784)
This commit is contained in:
parent
32c8c6992c
commit
541281b9f3
@ -4,6 +4,7 @@
|
|||||||
* [Getting Code](#getting-code)
|
* [Getting Code](#getting-code)
|
||||||
* [Code reviews](#code-reviews)
|
* [Code reviews](#code-reviews)
|
||||||
* [Code Style](#code-style)
|
* [Code Style](#code-style)
|
||||||
|
* [TypeScript guidelines](#typescript-guidelines)
|
||||||
* [API guidelines](#api-guidelines)
|
* [API guidelines](#api-guidelines)
|
||||||
* [Commit Messages](#commit-messages)
|
* [Commit Messages](#commit-messages)
|
||||||
* [Writing Documentation](#writing-documentation)
|
* [Writing Documentation](#writing-documentation)
|
||||||
|
@ -189,7 +189,7 @@ function checkSources(sources) {
|
|||||||
* @return {boolean}
|
* @return {boolean}
|
||||||
*/
|
*/
|
||||||
function symbolHasPrivateModifier(symbol) {
|
function symbolHasPrivateModifier(symbol) {
|
||||||
const modifiers = symbol.valueDeclaration.modifiers || [];
|
const modifiers = symbol.valueDeclaration && symbol.valueDeclaration.modifiers || [];
|
||||||
return modifiers.some(modifier => modifier.kind === ts.SyntaxKind.PrivateKeyword);
|
return modifiers.some(modifier => modifier.kind === ts.SyntaxKind.PrivateKeyword);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user