UNPKG

gatsby-source-sanity

Version:

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

16 lines (15 loc) 609 B
import { SanityClient } from '@sanity/client'; import { SourceNodesArgs } from 'gatsby'; import { SyncWithGatsby } from './getSyncWithGatsby'; import { PluginConfig } from './validateConfig'; export declare const sleep: (ms: number) => Promise<unknown>; /** * Queries all documents changed since last build & adds them to Gatsby's store */ export default function handleDeltaChanges({ args, lastBuildTime, client, syncWithGatsby, config, }: { args: SourceNodesArgs; lastBuildTime: string; client: SanityClient; syncWithGatsby: SyncWithGatsby; config: PluginConfig; }): Promise<boolean>;