18 lines
639 B
TypeScript
18 lines
639 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?: boolean;
|
|
pluginContext?: {
|
|
[key: string]: any;
|
|
};
|
|
}
|
|
export declare function executePlugin(options: ExecutePluginOptions, plugin: CodegenPlugin): Promise<Types.PluginOutput>;
|