UNPKG

886 BTypeScriptView Raw
1import { FileOutput, GraphQLSchema, DocumentFile, Types, CodegenPlugin } from 'graphql-codegen-core';
2export interface GenerateOutputOptions {
3 filename: string;
4 plugins: Types.ConfiguredPlugin[];
5 schema: GraphQLSchema;
6 documents: DocumentFile[];
7 inheritedConfig: {
8 [key: string]: any;
9 };
10}
11export interface ExecutePluginOptions {
12 name: string;
13 config: Types.PluginConfig;
14 schema: GraphQLSchema;
15 documents: DocumentFile[];
16 outputFilename: string;
17 allPlugins: Types.ConfiguredPlugin[];
18}
19export declare function executeCodegen(config: Types.Config): Promise<FileOutput[]>;
20export declare function generateOutput(options: GenerateOutputOptions): Promise<FileOutput>;
21export declare function getPluginByName(name: string): Promise<CodegenPlugin>;
22export declare function executePlugin(options: ExecutePluginOptions): Promise<string>;