1 | import { WatchQueryOptions as CoreWatchQueryOptions, QueryOptions as CoreQueryOptions, MutationOptions as CoreMutationOptions, SubscriptionOptions as CoreSubscriptionOptions } from 'apollo-client';
|
2 | import { ExecutionResult } from 'graphql';
|
3 | export declare type R = {
|
4 | [key: string]: any;
|
5 | };
|
6 | export interface ExtraSubscriptionOptions {
|
7 | useZone?: boolean;
|
8 | }
|
9 | export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
10 | export interface WatchQueryOptionsAlone<V> extends Omit<WatchQueryOptions<V>, 'query' | 'variables'> {
|
11 | }
|
12 | export interface QueryOptionsAlone<V> extends Omit<CoreQueryOptions<V>, 'query' | 'variables'> {
|
13 | }
|
14 | export interface MutationOptionsAlone<T, V> extends Omit<CoreMutationOptions<T, V>, 'mutation' | 'variables'> {
|
15 | }
|
16 | export interface SubscriptionOptionsAlone<V> extends Omit<CoreSubscriptionOptions<V>, 'query' | 'variables'> {
|
17 | }
|
18 | export interface WatchQueryOptions<V> extends CoreWatchQueryOptions<V> {
|
19 | |
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | useInitialLoading?: boolean;
|
26 | }
|
27 | export interface SubscriptionResult<T> extends ExecutionResult {
|
28 | data?: T;
|
29 | }
|