This commit is contained in:
34
node_modules/apollo-client/data/queries.d.ts
generated
vendored
Normal file
34
node_modules/apollo-client/data/queries.d.ts
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
import { DocumentNode, GraphQLError, ExecutionResult } from 'graphql';
|
||||
import { NetworkStatus } from '../core/networkStatus';
|
||||
export declare type QueryStoreValue = {
|
||||
document: DocumentNode;
|
||||
variables: Object;
|
||||
previousVariables?: Object | null;
|
||||
networkStatus: NetworkStatus;
|
||||
networkError?: Error | null;
|
||||
graphQLErrors?: ReadonlyArray<GraphQLError>;
|
||||
metadata: any;
|
||||
};
|
||||
export declare class QueryStore {
|
||||
private store;
|
||||
getStore(): {
|
||||
[queryId: string]: QueryStoreValue;
|
||||
};
|
||||
get(queryId: string): QueryStoreValue;
|
||||
initQuery(query: {
|
||||
queryId: string;
|
||||
document: DocumentNode;
|
||||
storePreviousVariables: boolean;
|
||||
variables: Object;
|
||||
isPoll: boolean;
|
||||
isRefetch: boolean;
|
||||
metadata: any;
|
||||
fetchMoreForQueryId: string | undefined;
|
||||
}): void;
|
||||
markQueryResult(queryId: string, result: ExecutionResult, fetchMoreForQueryId: string | undefined): void;
|
||||
markQueryError(queryId: string, error: Error, fetchMoreForQueryId: string | undefined): void;
|
||||
markQueryResultClient(queryId: string, complete: boolean): void;
|
||||
stopQuery(queryId: string): void;
|
||||
reset(observableQueryIds: string[]): void;
|
||||
}
|
||||
//# sourceMappingURL=queries.d.ts.map
|
||||
Reference in New Issue
Block a user