Skip to content

Commit

Permalink
Default invalid fragments to never result
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Jan 10, 2024
1 parent fa4864a commit a9545ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ type getFragmentSelectionType<
? Introspection['types'][Definition['typeCondition']['name']['value']] extends infer Type extends
ObjectLikeType
? getSelection<Definition['selectionSet']['selections'], Type, Introspection, Fragments>
: {}
: never
: never;

type getDocumentType<
Expand Down

0 comments on commit a9545ae

Please sign in to comment.