@@ -45,7 +45,7 @@ export type VueApolloSmartQueryErrorHandler<
4545 TResult = any ,
4646 TVariables = OperationVariables ,
4747 TError = ApolloError ,
48- TComponent extends Vue = Vue
48+ TComponent extends Vue = Vue ,
4949> = (
5050 error : TError ,
5151 vm : TComponent ,
@@ -58,13 +58,13 @@ export type VueApolloSmartQueryOptions<
5858 TResult = any ,
5959 TVariables = OperationVariables ,
6060 TError = ApolloError ,
61- TComponent extends Vue = Vue
61+ TComponent extends Vue = Vue ,
6262> = VueApolloQueryDefinitionPatched < TComponent , TResult , TVariables > & {
6363 error ?: VueApolloSmartQueryErrorHandler < TResult , TVariables , TError , TComponent > ;
6464} ;
6565
6666export type VueApolloSmartQueryOptionsFunction < TResult , TVariables , TError = ApolloError , TApp extends Vue = Vue > = <
67- TComponent extends Vue = TApp
67+ TComponent extends Vue = TApp ,
6868> (
6969 options ?: Partial < Omit < VueApolloSmartQueryOptions < TResult , TVariables , TError , TComponent > , 'query' > > ,
7070) => VueApolloSmartQueryOptions < TResult , TVariables , TError , TComponent > ;
@@ -93,8 +93,8 @@ export function createSmartQueryOptionsFunction<TResult, TVariables, TError = Ap
9393 ...options ,
9494 error :
9595 // we have to override vue-apollo types because they are incorrect
96- ( ( options . error as unknown ) as ErrorHandler | undefined ) ?? onError !== undefined
97- ? ( ( defaultErrorHandlerFn as unknown ) as ErrorHandler )
96+ ( options . error as unknown as ErrorHandler | undefined ) ?? onError !== undefined
97+ ? ( defaultErrorHandlerFn as unknown as ErrorHandler )
9898 : undefined ,
9999 } ;
100100 } ;
0 commit comments