Skip to content

Commit 0f31247

Browse files
madsci-botsgarner
authored andcommitted
Fix code style issues with Prettier
1 parent b022822 commit 0f31247

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/mutation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export type MutationOperationFunction<TResult, TVariables extends OperationVaria
4141
export interface MutationOperationParams<
4242
TVariables extends OperationVariables,
4343
TError = ApolloError,
44-
TContext = ApolloOperationContext
44+
TContext = ApolloOperationContext,
4545
> {
4646
mutation: DocumentNode;
4747
variables: TVariables;
@@ -83,7 +83,7 @@ export async function mutateWithErrorHandling<
8383
TResult,
8484
TVariables extends OperationVariables,
8585
TError,
86-
TApp extends VueAppWithApollo = VueAppWithApollo
86+
TApp extends VueAppWithApollo = VueAppWithApollo,
8787
>(
8888
app: TApp,
8989
{ mutation, variables, onError, context }: MutationOperationParams<TVariables, TError>,
@@ -123,7 +123,7 @@ export function createMutationFunction<
123123
TResult,
124124
TVariables extends OperationVariables,
125125
TError = ApolloError,
126-
TApp extends VueAppWithApollo = VueAppWithApollo
126+
TApp extends VueAppWithApollo = VueAppWithApollo,
127127
>(
128128
mutation: DocumentNode,
129129
onError?: ApolloOperationErrorHandlerFunction<TError, TApp>,

src/query.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

6666
export 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
};

src/subscription.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export type VueApolloSmartSubscriptionErrorHandler<
88
TResult = any,
99
TVariables = OperationVariables,
1010
TError = ApolloError,
11-
TApp extends Vue = Vue
11+
TApp extends Vue = Vue,
1212
> = (
1313
error: TError,
1414
vm: TApp,
@@ -21,7 +21,7 @@ export type VueApolloSmartSubscriptionOptions<
2121
TResult = any,
2222
TVariables = OperationVariables,
2323
TError = ApolloError,
24-
TApp extends Vue = Vue
24+
TApp extends Vue = Vue,
2525
> = Omit<VueApolloSubscriptionDefinition<TVariables>, 'error'> & {
2626
error?: VueApolloSmartSubscriptionErrorHandler<TResult, TVariables, TError, TApp>;
2727
};
@@ -30,7 +30,7 @@ export function createSmartSubscriptionOptionsFunction<
3030
TResult,
3131
TVariables,
3232
TError = ApolloError,
33-
TApp extends Vue = Vue
33+
TApp extends Vue = Vue,
3434
>(
3535
query: DocumentNode,
3636
onError?: ApolloOperationErrorHandlerFunction<TError, TApp>,
@@ -57,8 +57,8 @@ export function createSmartSubscriptionOptionsFunction<
5757
...options,
5858
error:
5959
// we have to override vue-apollo types because they are incorrect
60-
((options.error as unknown) as ErrorHandler | undefined) ?? onError !== undefined
61-
? ((defaultErrorHandlerFn as unknown) as ErrorHandler)
60+
(options.error as unknown as ErrorHandler | undefined) ?? onError !== undefined
61+
? (defaultErrorHandlerFn as unknown as ErrorHandler)
6262
: undefined,
6363
};
6464
};

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@ export interface ApolloErrorHandlerResult {
8888
export type ApolloOperationErrorHandlerFunction<
8989
TError = BaseApolloError,
9090
TApp extends Vue = Vue,
91-
TContext = ApolloOperationContext
91+
TContext = ApolloOperationContext,
9292
> = (error: TError, app: TApp, context?: TContext) => ApolloErrorHandlerResult;

0 commit comments

Comments
 (0)