All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.apollo-codegen-flow-legacy.lib.codeGeneration.d.ts Maven / Gradle / Ivy

import CodeGenerator from 'apollo-codegen-core/lib/utilities/CodeGenerator';
import { Property } from './language';
import { LegacyCompilerContext, LegacyOperation, LegacyFragment, LegacyField } from "apollo-codegen-core/lib/compiler/legacyIR";
import { GraphQLType } from "graphql";
export declare function generateSource(context: LegacyCompilerContext): string;
export declare function typeDeclarationForGraphQLType(generator: CodeGenerator, type: GraphQLType): void;
export declare function interfaceVariablesDeclarationForOperation(generator: CodeGenerator, { operationName, operationType, variables, }: LegacyOperation): void;
export declare function typeDeclarationForOperation(generator: CodeGenerator, { operationName, operationType, fields, }: LegacyOperation): void;
export declare function typeDeclarationForFragment(generator: CodeGenerator, fragment: LegacyFragment): void;
export declare function propertiesFromFields(context: LegacyCompilerContext, fields: LegacyField[]): Property[];
export declare function propertyFromField(context: LegacyCompilerContext, field: LegacyField): Property;
export declare function propertyDeclarations(generator: CodeGenerator, properties: Property[], isInput?: boolean): void;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy