Skip to content

Commit

Permalink
Fix resultOfT match
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Aug 18, 2024
1 parent 8071464 commit 6167ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ type resultOfT<Document extends FragmentShape, T = unknown> = Document extends D
infer Result,
any
>
? T extends { __typename?: string }
? '__typename' extends keyof T
? Result extends { __typename?: T['__typename'] }
? Result
: never
Expand Down

0 comments on commit 6167ce0

Please # to comment.