UNPKG

graphql-hooks

Version:
10 lines (9 loc) 469 B
import type { DocumentNode } from 'graphql/language/ast'; /** * Pipe with support for async functions * @param {array} array of functions * @returns single function */ export declare const pipeP: (fns: (() => any)[]) => (arg: any) => Promise<any>; export declare function extractOperationName(document: DocumentNode | string): string | undefined; export declare function stringifyDocumentNode<TNode extends DocumentNode | string>(document: TNode): string;