@aws-amplify/graphql-types-generator
Version:
Generate API code or type annotations based on a GraphQL schema and statements
26 lines (25 loc) • 897 B
TypeScript
import { GraphQLType } from 'graphql';
import { LegacyCompilerContext, LegacyInlineFragment } from '../compiler/legacyIR';
import { Property } from '../typescript/language';
export declare function generateSource(context: LegacyCompilerContext, options?: {
isAngularV6: boolean;
}): string;
export declare function variablesFromField(context: LegacyCompilerContext, fields: {
name?: string;
type: GraphQLType;
responseName?: string;
description?: string;
fragmentSpreads?: any;
inlineFragments?: LegacyInlineFragment[];
fieldName?: string;
}[]): Property[];
export declare function propertyFromVar(context: LegacyCompilerContext, field: {
name?: string;
type: GraphQLType;
fields?: any[];
responseName?: string;
description?: string;
fragmentSpreads?: any;
inlineFragments?: LegacyInlineFragment[];
fieldName?: string;
}): Property;