1 | import { GraphQLEnumType, GraphQLInputObjectType } from "graphql";
|
2 | import { CompilerContext, Operation, Fragment } from "apollo-codegen-core/lib/compiler";
|
3 | import { BasicGeneratedFile } from "apollo-codegen-core/lib/utilities/CodeGenerator";
|
4 | import FlowGenerator from "./language";
|
5 | import Printer from "./printer";
|
6 | declare class FlowGeneratedFile implements BasicGeneratedFile {
|
7 | fileContents: string;
|
8 | constructor(fileContents: string);
|
9 | get output(): string;
|
10 | }
|
11 | export declare function generateSource(context: CompilerContext): {
|
12 | generatedFiles: {
|
13 | sourcePath: string;
|
14 | fileName: string;
|
15 | content: FlowGeneratedFile;
|
16 | }[];
|
17 | common: string;
|
18 | };
|
19 | export declare class FlowAPIGenerator extends FlowGenerator {
|
20 | context: CompilerContext;
|
21 | printer: Printer;
|
22 | scopeStack: string[];
|
23 | constructor(context: CompilerContext);
|
24 | fileHeader(): void;
|
25 | typeAliasForEnumType(enumType: GraphQLEnumType): void;
|
26 | typeAliasForInputObjectType(inputObjectType: GraphQLInputObjectType): void;
|
27 | typeAliasesForOperation(operation: Operation): void;
|
28 | typeAliasesForFragment(fragment: Fragment): void;
|
29 | private getVariantsForSelectionSet;
|
30 | private getTypeCasesForSelectionSet;
|
31 | private getPropertiesForVariant;
|
32 | private handleFieldSelectionSetValue;
|
33 | private handleFieldValue;
|
34 | get output(): string;
|
35 | scopeStackPush(name: string): void;
|
36 | scopeStackPop(): string | undefined;
|
37 | }
|
38 | export {};
|
39 |
|
\ | No newline at end of file |