diff --git a/types/apollo-provider.d.ts b/types/apollo-provider.d.ts index f5eb94f..34e994f 100644 --- a/types/apollo-provider.d.ts +++ b/types/apollo-provider.d.ts @@ -1,14 +1,14 @@ /* eslint no-unused-vars: 0 */ import Vue, { AsyncComponent } from 'vue' -import { ApolloClient } from 'apollo-client'; +import { ApolloClient } from 'apollo-client' import { VueApolloComponentOptions, WatchLoading, ErrorHandler } from './options' -export type VueApolloComponent = VueApolloComponentOptions | typeof Vue | AsyncComponent; +export type VueApolloComponent = VueApolloComponentOptions | typeof Vue | AsyncComponent export class ApolloProvider { provide: (key?: string) => this diff --git a/types/options.d.ts b/types/options.d.ts index b3418c4..4a0d8bc 100644 --- a/types/options.d.ts +++ b/types/options.d.ts @@ -9,6 +9,10 @@ import { NetworkStatus, ApolloQueryResult, ApolloError +} from 'apollo-client' +import { FetchResult } from 'apollo-link' +import { ServerError, ServerParseError } from 'apollo-link-http-common' +import { DocumentNode, GraphQLError } from 'graphql' import { DeepApplyThisType } from './utils' /* Component options */ @@ -73,7 +77,7 @@ export interface VueApolloQueryDefinition extends WatchQueryOption /* Subscriptions */ interface VueApolloSubscribeToMoreOptions extends SubscribeToMoreOptions { - variables?: QueryVariables; + variables?: QueryVariables } interface VueApolloSubscriptionDefinition extends SubscriptionOptions { diff --git a/types/vue.d.ts b/types/vue.d.ts index e563e99..8c67dbc 100644 --- a/types/vue.d.ts +++ b/types/vue.d.ts @@ -19,6 +19,6 @@ declare module 'vue/types/options' { declare module 'vue/types/vue' { interface Vue { $apolloProvider: ApolloProvider - $apollo: DollarApollo; + $apollo: DollarApollo } }