UNPKG

703 BTypeScriptView Raw
1import { CodegenPlugin, Profiler, Types } from '@graphql-codegen/plugin-helpers';
2import { DocumentNode, GraphQLSchema } from 'graphql';
3export interface ExecutePluginOptions {
4 name: string;
5 config: Types.PluginConfig;
6 parentConfig: Types.PluginConfig;
7 schema: DocumentNode;
8 schemaAst?: GraphQLSchema;
9 documents: Types.DocumentFile[];
10 outputFilename: string;
11 allPlugins: Types.ConfiguredPlugin[];
12 skipDocumentsValidation?: Types.SkipDocumentsValidationOptions;
13 pluginContext?: {
14 [key: string]: any;
15 };
16 profiler?: Profiler;
17}
18export declare function executePlugin(options: ExecutePluginOptions, plugin: CodegenPlugin): Promise<Types.PluginOutput>;