Skip to content

Commit

Permalink
fix: make the context argument partial
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Mar 7, 2021
1 parent 5b134f9 commit ad5c0ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/villus/src/useMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { VILLUS_CLIENT } from './symbols';
import { Operation } from '../../shared/src';

interface MutationExecutionOptions {
context: MaybeReactive<QueryExecutionContext>;
context: MaybeReactive<Partial<QueryExecutionContext>>;
}

export function useMutation<TData = any, TVars = QueryVariables>(
Expand Down
2 changes: 1 addition & 1 deletion packages/villus/src/useQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Operation } from '../../shared/src';
interface QueryCompositeOptions<TData, TVars> {
query: MaybeReactive<Operation<TData, TVars>['query']>;
variables?: MaybeReactive<TVars>;
context?: MaybeReactive<QueryExecutionContext>;
context?: MaybeReactive<Partial<QueryExecutionContext>>;
cachePolicy?: CachePolicy;
fetchOnMount?: boolean;
}
Expand Down

0 comments on commit ad5c0ff

Please sign in to comment.