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 232af61 commit 438c5eaCopy full SHA for 438c5ea
src/helpers/input-type-has-matching-output-type.ts
@@ -44,11 +44,11 @@ function typesAreEquivalent(
44
}
45
46
return typeNode.astNode.fields.every((typeField) => {
47
- const baseTypeName = getBaseTypeNode(typeField.type).name.value;
48
const matchingInputField = inputNode.astNode?.fields?.find(
49
(inputField) => inputField.name.value === typeField.name.value,
50
);
51
if (!matchingInputField?.type) return false;
+ const baseTypeName = getBaseTypeNode(typeField.type).name.value;
52
const baseInputTypeName = getBaseTypeNode(matchingInputField.type).name
53
.value;
54
const typeNamesAreEquivalent =
0 commit comments