You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -130,17 +113,6 @@ export type AnimalFragmentFragment =
130
113
"
131
114
`;
132
115
133
-
exports[`TypeScript Operations Plugin > Issues > #8793 selecting __typename should not be optional 1`] =`
134
-
"export type SnakeQueryQueryVariables = Exact<{ [key: string]: never; }>;
135
-
136
-
137
-
export type SnakeQueryQuery = {__typename: 'Query', snake:
138
-
| { __typename: 'Snake' }
139
-
| { __typename: 'Error' }
140
-
};
141
-
"
142
-
`;
143
-
144
116
exports[`TypeScript Operations Plugin > Selection Set > Should generate the correct __typename when using both inline fragment and spread over type 1`] =`
145
117
"export type UserQueryQueryVariables = Exact<{ [key: string]: never; }>;
146
118
@@ -182,21 +154,6 @@ export type AaaQuery = { user:
182
154
"
183
155
`;
184
156
185
-
exports[`TypeScript Operations Plugin > Selection Set > Should generate the correct intersection for fragments when using with interfaces with same type 2`] =`
186
-
"export type Unnamed_1_QueryVariables = Exact<{ [key: string]: never; }>;
187
-
188
-
189
-
export type Unnamed_1_Query = {b:
190
-
| { id: string, x: number }
191
-
|Record<PropertyKey, never>
192
-
|null};
193
-
194
-
export type AFragment = {id: string};
195
-
196
-
export type BFragment = {x: number};
197
-
"
198
-
`;
199
-
200
157
exports[`TypeScript Operations Plugin > Selection Set > Should have valid __typename usage and split types according to that (with usage) 1`] =`
export type AdditionalInfoFragment = {message: string};
288
-
289
-
type UserResult1_User_Fragment = {id: string};
290
-
291
-
type UserResult1_Error3_Fragment = {info: { message2: string } |null};
292
-
293
-
export type UserResult1Fragment =
294
-
| UserResult1_User_Fragment
295
-
| UserResult1_Error3_Fragment
296
-
;
297
-
298
-
type UserResult_User_Fragment = {id: string};
299
-
300
-
type UserResult_Error2_Fragment = {message: string};
301
-
302
-
export type UserResultFragment =
303
-
| UserResult_User_Fragment
304
-
| UserResult_Error2_Fragment
305
-
;
306
-
"
307
-
`;
308
-
309
-
exports[`TypeScript Operations Plugin > Union & Interfaces > Should handle union selection sets with both FragmentSpreads and InlineFragments with flattenGeneratedTypes 1`] =`
310
-
"export type UserQueryQueryVariables = Exact<{ [key: string]: never; }>;
exports[`TypeScript Operations Plugin > Union & Interfaces > Should handle union selection sets with both FragmentSpreads and InlineFragments with flattenGeneratedTypes and directives 1`] =`
339
-
"export type UserQueryQueryVariables = Exact<{ [key: string]: never; }>;
0 commit comments