1 | import { GraphQLSchema, DocumentNode } from "graphql";
|
2 | import { CompilerOptions } from "apollo-codegen-core/lib/compiler";
|
3 | import { CompilerOptions as LegacyCompilerOptions } from "apollo-codegen-core/lib/compiler/legacyIR";
|
4 | import { FlowCompilerOptions } from "../../apollo-codegen-flow/lib/language";
|
5 | export declare type TargetType = "json" | "swift" | "scala" | "flow" | "typescript" | "ts";
|
6 | export declare type GenerationOptions = CompilerOptions & LegacyCompilerOptions & FlowCompilerOptions & {
|
7 | globalTypesFile?: string;
|
8 | tsFileExtension?: string;
|
9 | rootPath?: string;
|
10 | };
|
11 | export default function generate(document: DocumentNode, schema: GraphQLSchema, outputPath: string, only: string | undefined, target: TargetType, tagName: string, nextToSources: boolean | string, options: GenerationOptions): number;
|
12 |
|
\ | No newline at end of file |