node_modules.apollo-codegen-flow.lib.codeGeneration.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-client-maven-plugin Show documentation
Show all versions of apollo-client-maven-plugin Show documentation
Maven plugin for generating graphql clients
import { GraphQLEnumType, GraphQLInputObjectType } from 'graphql';
import { CompilerContext, Operation, Fragment } from 'apollo-codegen-core/lib/compiler';
import { BasicGeneratedFile } from 'apollo-codegen-core/lib/utilities/CodeGenerator';
import FlowGenerator from './language';
import Printer from './printer';
declare class FlowGeneratedFile implements BasicGeneratedFile {
fileContents: string;
constructor(fileContents: string);
readonly output: string;
}
export declare function generateSource(context: CompilerContext): {
generatedFiles: {
[filePath: string]: FlowGeneratedFile;
};
common: string;
};
export declare class FlowAPIGenerator extends FlowGenerator {
context: CompilerContext;
printer: Printer;
scopeStack: string[];
constructor(context: CompilerContext);
fileHeader(): void;
typeAliasForEnumType(enumType: GraphQLEnumType): void;
typeAliasForInputObjectType(inputObjectType: GraphQLInputObjectType): void;
typeAliasesForOperation(operation: Operation): void;
typeAliasesForFragment(fragment: Fragment): void;
private getVariantsForSelectionSet;
private getTypeCasesForSelectionSet;
private getPropertiesForVariant;
private handleFieldSelectionSetValue;
private handleFieldValue;
readonly output: string;
scopeStackPush(name: string): void;
scopeStackPop(): string | undefined;
}
export {};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy