fix(40685): fix generating docs for arrow functions (#40728)

This commit is contained in:
Alex T
2020-10-06 17:50:08 +03:00
committed by GitHub
parent 66c877f57a
commit 1e49ad8370
2 changed files with 15 additions and 2 deletions

View File

@@ -329,6 +329,7 @@ namespace ts.JsDoc {
case SyntaxKind.MethodDeclaration:
case SyntaxKind.Constructor:
case SyntaxKind.MethodSignature:
case SyntaxKind.ArrowFunction:
const { parameters } = commentOwner as FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | MethodSignature;
return { commentOwner, parameters };