UNPKG

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