UNPKG

351 BTypeScriptView Raw
1import { ASTNode } from 'graphql/language/ast';
2/**
3 * Converts an AST into a string, using one set of reasonable
4 * formatting rules.
5 */
6export type PrintOptions = {
7 clientVarName?: string;
8 transformVariableName?: (x: string) => string;
9 thenCode?: string;
10};
11export declare function print(ast: ASTNode, options?: PrintOptions): ASTNode;