Skip to content

Commit

Permalink
fix: clean imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Oct 17, 2020
1 parent 0cd4f95 commit 97be1e2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/vue-apollo-composable/src/useQuery.ts
Expand Up @@ -19,8 +19,8 @@ import {
SubscribeToMoreOptions,
FetchMoreQueryOptions,
FetchMoreOptions,
ObservableSubscription,
} from '@apollo/client/core'
import { ObservableSubscription as Subscription } from '@apollo/client/utilities/observables/Observable'
import { throttle, debounce } from 'throttle-debounce'
import { useApolloClient } from './useApolloClient'
import { ReactiveFunction } from './util/ReactiveFunction'
Expand Down Expand Up @@ -170,7 +170,7 @@ export function useQuery<
// Query

const query: Ref<ObservableQuery<TResult, TVariables>> = ref()
let observer: Subscription
let observer: ObservableSubscription
let started = false

/**
Expand Down
22 changes: 18 additions & 4 deletions packages/vue-apollo-composable/src/useSubscription.ts
@@ -1,7 +1,21 @@
import { DocumentNode } from 'graphql'
import { Ref, ref, watch, isRef, computed, getCurrentInstance, onBeforeUnmount, nextTick } from 'vue-demi'
import { OperationVariables, SubscriptionOptions, FetchResult } from '@apollo/client/core'
import { Observable, ObservableSubscription as Subscription } from '@apollo/client/utilities/observables/Observable'
import {
Ref,
ref,
watch,
isRef,
computed,
getCurrentInstance,
onBeforeUnmount,
nextTick,
} from 'vue-demi'
import {
OperationVariables,
SubscriptionOptions,
FetchResult,
Observable,
ObservableSubscription,
} from '@apollo/client/core'
import { throttle, debounce } from 'throttle-debounce'
import { ReactiveFunction } from './util/ReactiveFunction'
import { paramToRef } from './util/paramToRef'
Expand Down Expand Up @@ -110,7 +124,7 @@ export function useSubscription <
const { resolveClient } = useApolloClient()

const subscription: Ref<Observable<FetchResult<TResult>>> = ref()
let observer: Subscription
let observer: ObservableSubscription
let started = false

function start () {
Expand Down

0 comments on commit 97be1e2

Please sign in to comment.