We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 697805f commit a05e492Copy full SHA for a05e492
src/NodeParser/FunctionNodeParser.ts
@@ -16,7 +16,15 @@ export class FunctionNodeParser implements SubNodeParser {
16
) {}
17
18
public supportsNode(node: ts.TypeNode): boolean {
19
- return node.kind === ts.SyntaxKind.FunctionType;
+ return (
20
+ node.kind === ts.SyntaxKind.FunctionType ||
21
+ //@ts-ignore internals type bug
22
+ node.kind === ts.SyntaxKind.FunctionExpression ||
23
24
+ node.kind === ts.SyntaxKind.ArrowFunction ||
25
26
+ node.kind === ts.SyntaxKind.FunctionDeclaration
27
+ );
28
}
29
30
public createType(
0 commit comments