Skip to content

Commit 438c5ea

Browse files
committed
refactor
1 parent 232af61 commit 438c5ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/input-type-has-matching-output-type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ function typesAreEquivalent(
4444
}
4545

4646
return typeNode.astNode.fields.every((typeField) => {
47-
const baseTypeName = getBaseTypeNode(typeField.type).name.value;
4847
const matchingInputField = inputNode.astNode?.fields?.find(
4948
(inputField) => inputField.name.value === typeField.name.value,
5049
);
5150
if (!matchingInputField?.type) return false;
51+
const baseTypeName = getBaseTypeNode(typeField.type).name.value;
5252
const baseInputTypeName = getBaseTypeNode(matchingInputField.type).name
5353
.value;
5454
const typeNamesAreEquivalent =

0 commit comments

Comments
 (0)