Skip to content

Commit 9e3b2bf

Browse files
ihpannuAkryum
authored andcommitted
fix(types): optimisticResponse typing issue (#627)
* Typescript compilation error with latest apollo package Fixed a bug * fix: better optimisticResponse typing
1 parent eba11d8 commit 9e3b2bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/options.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export interface VueApolloQueryOptions<V, R> extends ExtendableVueApolloQueryOpt
4747
export interface VueApolloMutationOptions<V, R> extends MutationOptions<R> {
4848
mutation: DocumentNode;
4949
variables?: VariableFn<V>;
50-
optimisticResponse?: ((this: ApolloVueThisType<V>) => any) | Object;
50+
optimisticResponse?: ((this: ApolloVueThisType<V>) => R) | R;
5151
client?: String
5252
}
5353

0 commit comments

Comments
 (0)