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 e83bb90 commit 7e4371fCopy full SHA for 7e4371f
src/NodeParser/CallExpressionParser.ts
@@ -20,7 +20,7 @@ export class CallExpressionParser implements SubNodeParser {
20
const type = this.typeChecker.getTypeAtLocation(node);
21
22
// FIXME: remove special case
23
- if ((type as any)?.typeArguments) {
+ if (Array.isArray((type as any)?.typeArguments?.[0]?.types)) {
24
return new TupleType([
25
new UnionType((type as any).typeArguments[0].types.map((t: any) => new LiteralType(t.value))),
26
]);
0 commit comments