Skip to content

Instantly share code, notes, and snippets.

@yutahaga
Created December 8, 2018 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yutahaga/5f65ca5a5c1c16a2e12815e7f1cc1ba7 to your computer and use it in GitHub Desktop.
Save yutahaga/5f65ca5a5c1c16a2e12815e7f1cc1ba7 to your computer and use it in GitHub Desktop.
@nuxtjs/apollo用の VueApollo 型拡張宣言ファイル。
declare module 'vue-apollo/types/vue-apollo' {
import { ApolloClient } from 'apollo-client'
import {
VueApolloOptions,
WatchLoading,
ErrorHandler
} from 'vue-apollo/types/options'
interface VueApollo {
defaultClient: ApolloClient<{}>
defaultOptions: VueApolloOptions<{}>
clients: { [key: string]: ApolloClient<{}> }
watchLoading: WatchLoading<{}>
errorHandler: ErrorHandler<{}>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment