UNPKG

803 BTypeScriptView Raw
1import { CompilerOptions } from "apollo-codegen-core/lib/compiler";
2import { CompilerOptions as LegacyCompilerOptions } from "apollo-codegen-core/lib/compiler/legacyIR";
3import { GraphQLSchema } from "graphql";
4import { FlowCompilerOptions } from "../../apollo-codegen-flow/lib/language";
5export declare type TargetType = "json" | "swift" | "ts-legacy" | "typescript-legacy" | "flow-legacy" | "scala" | "flow" | "typescript" | "ts";
6export declare type GenerationOptions = CompilerOptions & LegacyCompilerOptions & FlowCompilerOptions & {
7 globalTypesFile?: string;
8};
9export default function generate(inputPaths: string[], schema: GraphQLSchema, outputPath: string, only: string | undefined, target: TargetType, tagName: string, nextToSources: boolean | string, options: GenerationOptions): number;