@graphql-codegen/core
Version:
<p align="center"> <img src="https://github.com/dotansimha/graphql-code-generator/blob/master/logo.png?raw=true" /> </p>
18 lines (17 loc) • 668 B
TypeScript
import { Types, CodegenPlugin } from '@graphql-codegen/plugin-helpers';
import { DocumentNode, GraphQLSchema } from 'graphql';
export interface ExecutePluginOptions {
name: string;
config: Types.PluginConfig;
parentConfig: Types.PluginConfig;
schema: DocumentNode;
schemaAst?: GraphQLSchema;
documents: Types.DocumentFile[];
outputFilename: string;
allPlugins: Types.ConfiguredPlugin[];
skipDocumentsValidation?: Types.SkipDocumentsValidationOptions;
pluginContext?: {
[key: string]: any;
};
}
export declare function executePlugin(options: ExecutePluginOptions, plugin: CodegenPlugin): Promise<Types.PluginOutput>;