File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ export class ApiModelGenerator {
252
252
case ts . SyntaxKind . VariableDeclaration :
253
253
// check for arrow functions in variable declaration
254
254
const functionDeclaration : ts . FunctionDeclaration | undefined =
255
- this . _hasFunctionDeclaration ( astDeclaration ) ;
255
+ this . _tryFindFunctionDeclaration ( astDeclaration ) ;
256
256
if ( functionDeclaration ) {
257
257
this . _processApiFunction ( astDeclaration , context , functionDeclaration ) ;
258
258
} else {
@@ -265,7 +265,7 @@ export class ApiModelGenerator {
265
265
}
266
266
}
267
267
268
- private _hasFunctionDeclaration ( astDeclaration : AstDeclaration ) : ts . FunctionDeclaration | undefined {
268
+ private _tryFindFunctionDeclaration ( astDeclaration : AstDeclaration ) : ts . FunctionDeclaration | undefined {
269
269
const children : ts . Node [ ] = astDeclaration . declaration . getChildren (
270
270
astDeclaration . declaration . getSourceFile ( )
271
271
) ;
Original file line number Diff line number Diff line change 2
2
"changes" : [
3
3
{
4
4
"packageName" : " @microsoft/api-extractor" ,
5
- "comment" : " \" Classify arrow functions as ' function' kind in the doc model export\" " ,
5
+ "comment" : " Classify arrow functions as ` function` kind in the doc model export. " ,
6
6
"type" : " minor"
7
7
}
8
8
],
You can’t perform that action at this time.
0 commit comments