UNPKG

gatsby-source-sanity

Version:

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

10 lines (9 loc) 451 B
import { SanityDocument } from '../types/sanity'; import { GatsbyContext, GatsbyNode } from '../types/gatsby'; import { ProcessingOptions } from './normalize'; export interface ListenerMessage { documentId: string; transition: string; result: SanityDocument; } export declare function handleListenerEvent(event: ListenerMessage, publishedNodes: Map<string, GatsbyNode>, context: GatsbyContext, processingOptions: ProcessingOptions): void;