Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
beerose committed Oct 19, 2023
1 parent bc3e5eb commit f2a3ec4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/react/nextjs-swr/hooks/use-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export function useGraphQL<TResult, TVariables>(
document.definitions.find(isOperationDefinition)?.name,
variables,
] as const,
async (_key, variables) =>
async (_key: string, variables: any) =>
executor({
document: document as any,
variables: variables as any,
document,
variables,
}) as Promise<ExecutionResult<TResult>>
);
}

0 comments on commit f2a3ec4

Please sign in to comment.