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
const{ data }=useQuery<PostsQuery,PostsQueryVariables>({query: Postsvariables: {// variables are now typed as PostsQueryVariables},});data.value;// is now typed as PostsQuery type!
This does not appear to work when using executeQuery instead of useQuery. In the villus.d.ts file the following signature is found:
In the documentation https://villus.logaretm.com/guide/typescript-codgen/#using-generated-queries it shows the following code example:
This does not appear to work when using
executeQuery
instead ofuseQuery
. In thevillus.d.ts
file the following signature is found:Is it as simple as adding
TData
toOperationResult
?The text was updated successfully, but these errors were encountered: