Skip to content

Commit d5f8300

Browse files
committed
chore: fix TS error
1 parent 708e6dc commit d5f8300

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/internal/graphqlTypegenCore.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,10 @@ export default function graphqlTypegenCore(
644644
const {
645645
node: { id },
646646
} = path
647-
if (useFunctionTypeArguments) {
647+
if (
648+
useFunctionTypeArguments &&
649+
path.node.init?.type === 'CallExpression'
650+
) {
648651
setTypeParameters(
649652
path.node.init,
650653
makeFunctionTypeParameterInstantiation(data, variables)

0 commit comments

Comments
 (0)