mirror of
https://github.com/CamHenlin/MessagesForMacintosh.git
synced 2025-02-21 09:29:00 +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
|