@gqlts/cli
Version:
Generate a client sdk from your GraphQl API
12 lines (11 loc) • 351 B
TypeScript
import { ASTNode } from 'graphql/language/ast';
/**
* Converts an AST into a string, using one set of reasonable
* formatting rules.
*/
export type PrintOptions = {
clientVarName?: string;
transformVariableName?: (x: string) => string;
thenCode?: string;
};
export declare function print(ast: ASTNode, options?: PrintOptions): ASTNode;