Skip to content

Commit 9c46089

Browse files
committed
fix lint
1 parent daa242a commit 9c46089

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/decorator/SmartQuery.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,11 @@ describe('@SmartQuery() decorator', () => {
225225
variables() {
226226
return this.vars;
227227
},
228+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
228229
update(data: QueryResult) {
229230
// data: QueryResult
230231
},
232+
// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-empty-function
231233
result(data: ApolloQueryResult<QueryResult>) {},
232234
subscribeToMore: [
233235
{
@@ -242,6 +244,7 @@ describe('@SmartQuery() decorator', () => {
242244
variables() {
243245
return this.vars;
244246
},
247+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
245248
updateQuery(prev, { subscriptionData: { data }, variables }) {
246249
return {
247250
...prev,

src/decorator/SmartQuery.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ import { createDecorator, VueDecorator } from 'vue-class-component';
99
import { VueApolloSmartQueryOptions } from '../query';
1010

1111
export function SmartQuery<TApp = any, TResult = any, TVariables = OperationVariables, TError = ApolloError>(
12-
options: TApp extends Vue
13-
? VueApolloSmartQueryOptions<TResult, TVariables, TError, TApp>
14-
: DocumentNode,
12+
options: TApp extends Vue ? VueApolloSmartQueryOptions<TResult, TVariables, TError, TApp> : DocumentNode,
1513
): VueDecorator {
1614
return createDecorator((componentOptions: any, k: string) => {
1715
componentOptions.apollo = componentOptions.apollo || {};

0 commit comments

Comments
 (0)