Skip to content

Commit 80bc088

Browse files
chore: PR feedback
1 parent af3bfcf commit 80bc088

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/api-extractor/src/generators/ApiModelGenerator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export class ApiModelGenerator {
252252
case ts.SyntaxKind.VariableDeclaration:
253253
// check for arrow functions in variable declaration
254254
const functionDeclaration: ts.FunctionDeclaration | undefined =
255-
this._hasFunctionDeclaration(astDeclaration);
255+
this._tryFindFunctionDeclaration(astDeclaration);
256256
if (functionDeclaration) {
257257
this._processApiFunction(astDeclaration, context, functionDeclaration);
258258
} else {
@@ -265,7 +265,7 @@ export class ApiModelGenerator {
265265
}
266266
}
267267

268-
private _hasFunctionDeclaration(astDeclaration: AstDeclaration): ts.FunctionDeclaration | undefined {
268+
private _tryFindFunctionDeclaration(astDeclaration: AstDeclaration): ts.FunctionDeclaration | undefined {
269269
const children: ts.Node[] = astDeclaration.declaration.getChildren(
270270
astDeclaration.declaration.getSourceFile()
271271
);

common/changes/@microsoft/api-extractor/bartvandenende-wm-api-extractor-arrow-func_2024-02-06-14-12.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"changes": [
33
{
44
"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.",
66
"type": "minor"
77
}
88
],

0 commit comments

Comments
 (0)