File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,6 @@ export const graphql = initGraphQLTada<{
20
20
export type { FragmentOf , ResultOf , VariablesOf } from 'gql.tada' ;
21
21
export { readFragment } from 'gql.tada' ;
22
22
23
- export type InputOf < T > = VariablesOf < T > extends { input : infer Input }
23
+ export type InputOf < T > = VariablesOf < T > extends { input ? : infer Input }
24
24
? Input
25
25
: never ;
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ import './expect-gql-error';
15
15
16
16
export interface GraphQLTestClient {
17
17
query : < TData extends AnyObject , TVars extends AnyObject > (
18
- query : DocumentNode < TData , any > ,
19
- variables ?: TVars ,
18
+ query : DocumentNode < TData , TVars > ,
19
+ variables ?: NoInfer < TVars > ,
20
20
) => GqlResult < TData > ;
21
21
mutate : < TData extends AnyObject , TVars extends AnyObject > (
22
- query : DocumentNode < TData , any > ,
23
- variables ?: TVars ,
22
+ query : DocumentNode < TData , TVars > ,
23
+ variables ?: NoInfer < TVars > ,
24
24
) => GqlResult < TData > ;
25
25
authToken : string ;
26
26
email ?: string ;
You can’t perform that action at this time.
0 commit comments