Skip to content

Commit

Permalink
chore: PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvandenende-wm committed Feb 6, 2024
1 parent af3bfcf commit 80bc088
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/api-extractor/src/generators/ApiModelGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export class ApiModelGenerator {
case ts.SyntaxKind.VariableDeclaration:
// check for arrow functions in variable declaration
const functionDeclaration: ts.FunctionDeclaration | undefined =
this._hasFunctionDeclaration(astDeclaration);
this._tryFindFunctionDeclaration(astDeclaration);
if (functionDeclaration) {
this._processApiFunction(astDeclaration, context, functionDeclaration);
} else {
Expand All @@ -265,7 +265,7 @@ export class ApiModelGenerator {
}
}

private _hasFunctionDeclaration(astDeclaration: AstDeclaration): ts.FunctionDeclaration | undefined {
private _tryFindFunctionDeclaration(astDeclaration: AstDeclaration): ts.FunctionDeclaration | undefined {
const children: ts.Node[] = astDeclaration.declaration.getChildren(
astDeclaration.declaration.getSourceFile()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"changes": [
{
"packageName": "@microsoft/api-extractor",
"comment": "\"Classify arrow functions as 'function' kind in the doc model export\"",
"comment": "Classify arrow functions as `function` kind in the doc model export.",
"type": "minor"
}
],
Expand Down

0 comments on commit 80bc088

Please sign in to comment.