UNPKG

450 BTypeScriptView Raw
1import type { DocumentNode, FragmentDefinitionNode } from "graphql";
2export interface FragmentRegistryAPI {
3 register(...fragments: DocumentNode[]): this;
4 lookup(fragmentName: string): FragmentDefinitionNode | null;
5 transform<D extends DocumentNode>(document: D): D;
6 resetCaches(): void;
7}
8export declare function createFragmentRegistry(...fragments: DocumentNode[]): FragmentRegistryAPI;
9//# sourceMappingURL=fragmentRegistry.d.ts.map
\No newline at end of file