gatsby-source-payload-cms
Version:
Source data from Payload CMS
10 lines (9 loc) • 615 B
TypeScript
import type { GatsbyNode } from "gatsby";
/**
* When you expose options for your plugin, it's best practice to validate the user input.
* You can use the pluginOptionsSchema API to do this, which is powered by Joi: https://joi.dev/
* If for example a user would forget to add the endpoint option, Gatsby will show a validation error.
* @see https://www.gatsbyjs.com/docs/reference/config-files/gatsby-node/#pluginOptionsSchema
* @see https://www.gatsbyjs.com/docs/how-to/plugins-and-themes/configuring-usage-with-plugin-options/
*/
export declare const pluginOptionsSchema: GatsbyNode["pluginOptionsSchema"];