@itinari/vue-saturn
Advanced tools
Comparing version 1.0.1 to 1.0.2
import Vue from 'vue'; | ||
import ApolloClient from 'apollo-client'; | ||
import { mixin } from './mixin'; | ||
import { QueryOptions } from './types'; | ||
import { SmartQuery } from './SmartQuery'; | ||
import { SmartQuery, QueryOptions } from './SmartQuery'; | ||
export { prefetchComponent, getStates } from './ssr'; | ||
@@ -7,0 +6,0 @@ export default mixin; |
import Vue from 'vue'; | ||
import { ApolloQueryResult } from 'apollo-client'; | ||
import { QueryOptions } from './types'; | ||
import { ApolloQueryResult, WatchQueryOptions } from 'apollo-client'; | ||
export declare type QueryFunction = (this: any, context?: any) => any; | ||
export declare type VariablesFunction = (this: any, context?: any) => object; | ||
export declare type UpdateFunction = (this: any, context?: any) => any; | ||
export declare type SkipFunction = (this: any, context?: any) => boolean; | ||
export declare type QueryOptions = { | ||
query: QueryFunction | any; | ||
variables?: VariablesFunction | object; | ||
update: UpdateFunction; | ||
prefetch?: boolean; | ||
skip?: SkipFunction | boolean; | ||
loadingKey?: string; | ||
} & Pick<WatchQueryOptions, Exclude<keyof WatchQueryOptions, 'query' | 'variables'>>; | ||
export declare type SmartQueryOptions = { | ||
@@ -5,0 +16,0 @@ vm: Vue; |
{ | ||
"name": "@itinari/vue-saturn", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "VueJS Apollo/GraphQL integration", | ||
@@ -10,4 +10,5 @@ "main": "dist/index.js", | ||
"test:type-check": "tsc --noEmit --skipLibCheck", | ||
"clean": "rm -rf dist", | ||
"build": "tsc --pretty", | ||
"prepublishOnly": "npm run test:lint && npm run build" | ||
"prepublishOnly": "npm run clean && npm run test:lint && npm run build" | ||
}, | ||
@@ -14,0 +15,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
33170
18
349