@apollo/client
Version:
A fully-featured caching GraphQL client.
8 lines • 420 B
TypeScript
import { DocumentNode, FragmentDefinitionNode } from "graphql";
export interface FragmentRegistryAPI {
register(...fragments: DocumentNode[]): this;
lookup(fragmentName: string): FragmentDefinitionNode | null;
transform<D extends DocumentNode>(document: D): D;
}
export declare function createFragmentRegistry(...fragments: DocumentNode[]): FragmentRegistryAPI;
//# sourceMappingURL=fragmentRegistry.d.ts.map