gatsby-plugin-utils
Version:
Gatsby utils that help creating plugins
11 lines (10 loc) • 453 B
TypeScript
import { GatsbyNode } from "gatsby";
import { IPluginInfoOptions } from "./types";
interface ITestPluginOptionsSchemaReturnType {
errors: Array<string>;
warnings: Array<string>;
isValid: boolean;
hasWarnings: boolean;
}
export declare function testPluginOptionsSchema(pluginSchemaFunction: Exclude<GatsbyNode["pluginOptionsSchema"], undefined>, pluginOptions: IPluginInfoOptions): Promise<ITestPluginOptionsSchemaReturnType>;
export {};