We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
after install villus@2.0.1, villus.d.ts in package shows
declare function useMutation<TData = any, TVars = QueryVariables>(query: Operation<TData, TVars>['query'], opts?: Partial<MutationExecutionOptions>): { data: Ref<TData>; isFetching: Ref<boolean>; isDone: Ref<boolean>; error: Ref<CombinedError>; execute: (variables?: TVars) => Promise<{ data: TData; error: CombinedError; }>; };
but it should be
declare function useMutation<TData = any, TVars = QueryVariables>(query: Operation<TData, TVars>['query'], opts?: Partial<MutationExecutionOptions>): { data: Ref<TData | null>; isFetching: Ref<boolean>; isDone: Ref<boolean>; error: Ref<CombinedError | null>; execute: (variables?: TVars) => Promise<{ data: TData | null; error: CombinedError | null; }>; };
The text was updated successfully, but these errors were encountered:
You are absolutely correct. I will fix this in a few minutes.
Sorry, something went wrong.
fix(types): ensure mutation data and error are nullable closes #182
1b9db97
25b6e5c
No branches or pull requests
after install villus@2.0.1, villus.d.ts in package shows
but it should be
The text was updated successfully, but these errors were encountered: