mirror of
https://github.com/CamHenlin/MessagesForMacintosh.git
synced 2024-11-26 05:49:24 +00:00
19 lines
648 B
TypeScript
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
|