You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
450 B
9 lines
450 B
4 months ago
|
import type { DocumentNode, FragmentDefinitionNode } from "graphql";
|
||
|
export interface FragmentRegistryAPI {
|
||
|
register(...fragments: DocumentNode[]): this;
|
||
|
lookup(fragmentName: string): FragmentDefinitionNode | null;
|
||
|
transform<D extends DocumentNode>(document: D): D;
|
||
|
resetCaches(): void;
|
||
|
}
|
||
|
export declare function createFragmentRegistry(...fragments: DocumentNode[]): FragmentRegistryAPI;
|
||
|
//# sourceMappingURL=fragmentRegistry.d.ts.map
|