UNPKG

@envelop/persisted-operations

Version:
13 lines (12 loc) 529 B
import type { DocumentNode } from 'graphql'; import type { PersistedOperationsStore } from '../types.js'; export type InMemoryStoreDataMap = Map<string, DocumentNode | string>; export declare class InMemoryStore implements PersistedOperationsStore { private storeData; constructor(options?: { initialData?: InMemoryStoreDataMap; }); get(operationId: string): string | DocumentNode | undefined; prime(operationId: string, document: string | DocumentNode): void; clear(operationId: string): void; }