Files
coopgo/node_modules/apollo-client/data/mutations.d.ts
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

19 lines
648 B
TypeScript

import { DocumentNode } from 'graphql';
export declare class MutationStore {
private store;
getStore(): {
[mutationId: string]: MutationStoreValue;
};
get(mutationId: string): MutationStoreValue;
initMutation(mutationId: string, mutation: DocumentNode, variables: Object | undefined): void;
markMutationError(mutationId: string, error: Error): void;
markMutationResult(mutationId: string): void;
reset(): void;
}
export interface MutationStoreValue {
mutation: DocumentNode;
variables: Object;
loading: boolean;
error: Error | null;
}
//# sourceMappingURL=mutations.d.ts.map