UNPKG

gatsby-source-sanity

Version:

Gatsby source plugin for building websites using Sanity.io as a backend.

18 lines (17 loc) 511 B
import { PluginOptions, Reporter } from 'gatsby'; export interface PluginConfig extends PluginOptions { apiHost?: string; projectId: string; dataset: string; token?: string; version?: string; graphqlTag: string; overlayDrafts?: boolean; watchMode?: boolean; watchModeBuffer?: number; typePrefix?: string; _mocks: { schemaPath: string; }; } export default function validateConfig(config: Partial<PluginConfig>, reporter: Reporter): config is PluginConfig;