1 | import CodeGenerator from "apollo-codegen-core/lib/utilities/CodeGenerator";
|
2 | import { LegacyCompilerContext, LegacyOperation, LegacyFragment, LegacyField, LegacyInlineFragment } from "apollo-codegen-core/lib/compiler/legacyIR";
|
3 | import { GraphQLType } from "graphql";
|
4 | import { Property } from "./language";
|
5 | import { GraphQLCompositeType } from "graphql";
|
6 | export declare function generateSource(context: LegacyCompilerContext): string;
|
7 | export declare function classDeclarationForOperation(generator: CodeGenerator<LegacyCompilerContext, any>, { operationName, operationType, rootType, variables, fields, inlineFragments, fragmentSpreads, fragmentsReferenced, source, operationId }: LegacyOperation): void;
|
8 | export declare function traitDeclarationForFragment(generator: CodeGenerator<LegacyCompilerContext, any>, { fragmentName, typeCondition, fields, inlineFragments, fragmentSpreads, source }: LegacyFragment): void;
|
9 | export declare function traitDeclarationForSelectionSet(generator: CodeGenerator<LegacyCompilerContext, any>, { traitName, parentType, fields, inlineFragments, fragmentSpreads, viewableAs, parentFragments }: {
|
10 | traitName: string;
|
11 | parentType: GraphQLCompositeType;
|
12 | fields: LegacyField[];
|
13 | inlineFragments?: LegacyInlineFragment[];
|
14 | fragmentSpreads?: string[];
|
15 | viewableAs?: {
|
16 | traitName: string;
|
17 | properties: (LegacyField & Property)[];
|
18 | };
|
19 | parentFragments?: string[];
|
20 | }, objectClosure?: () => void): void;
|
21 | export declare function typeDeclarationForGraphQLType(generator: CodeGenerator<LegacyCompilerContext, any>, type: GraphQLType): void;
|
22 |
|
\ | No newline at end of file |