diff --git a/src/api.ts b/src/api.ts index 24c888ea..853f9ffb 100644 --- a/src/api.ts +++ b/src/api.ts @@ -453,7 +453,7 @@ type resultOfT = Document extends D infer Result, any > - ? T extends { __typename?: string } + ? '__typename' extends keyof T ? Result extends { __typename?: T['__typename'] } ? Result : never