@aws-amplify/graphql-generator
Version:
GraphQL API code generator
19 lines • 853 B
TypeScript
import type { GraphQLWithMeta } from '@aws-amplify/graphql-docs-generator';
declare type Language = 'javascript' | 'graphql' | 'typescript' | 'flow' | 'angular';
export declare class GraphQLStatementsFormatter {
private language;
private lintOverrides;
private headerComments;
private opTypeName?;
private typesPath;
private includeTypeScriptTypes;
constructor(language: Language, operation: string, typesPath?: string);
get typeDefs(): string;
format(statements: Map<string, GraphQLWithMeta>): string;
formatGraphQL(statements: Map<string, GraphQLWithMeta>): string;
formatJS(statements: Map<string, GraphQLWithMeta>): string;
buildTypeTag(operationName?: string, operationType?: string): string;
prettify(output: string): string;
}
export {};
//# sourceMappingURL=GraphQLStatementsFormatter.d.ts.map