@graphql-codegen/client-preset
Version:
GraphQL Code Generator preset for client.
10 lines (9 loc) • 403 B
TypeScript
import { type DocumentNode } from 'graphql';
/**
* This function generates a hash from a document node.
*/
export declare function generateDocumentHash(operation: string, algorithm: 'sha1' | 'sha256' | (string & {}) | ((operation: string) => string)): string;
/**
* Normalizes and prints a document node.
*/
export declare function normalizeAndPrintDocumentNode(documentNode: DocumentNode): string;