Skip to content

Commit a05e492

Browse files
i was wrong
1 parent 697805f commit a05e492

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/NodeParser/FunctionNodeParser.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@ export class FunctionNodeParser implements SubNodeParser {
1616
) {}
1717

1818
public supportsNode(node: ts.TypeNode): boolean {
19-
return node.kind === ts.SyntaxKind.FunctionType;
19+
return (
20+
node.kind === ts.SyntaxKind.FunctionType ||
21+
//@ts-ignore internals type bug
22+
node.kind === ts.SyntaxKind.FunctionExpression ||
23+
//@ts-ignore internals type bug
24+
node.kind === ts.SyntaxKind.ArrowFunction ||
25+
//@ts-ignore internals type bug
26+
node.kind === ts.SyntaxKind.FunctionDeclaration
27+
);
2028
}
2129

2230
public createType(

0 commit comments

Comments
 (0)