UNPKG

566 BTypeScriptView Raw
1import { Types, DocumentFile, CodegenPlugin } from 'graphql-codegen-core';
2import { DocumentNode } from 'graphql';
3export interface ExecutePluginOptions {
4 name: string;
5 config: Types.PluginConfig;
6 schema: DocumentNode;
7 documents: DocumentFile[];
8 outputFilename: string;
9 allPlugins: Types.ConfiguredPlugin[];
10}
11export declare function getPluginByName(name: string, pluginLoader: Types.PluginLoaderFn): Promise<CodegenPlugin>;
12export declare function executePlugin(options: ExecutePluginOptions, pluginPackage: CodegenPlugin): Promise<string>;