gatsby-source-sanity
Version:
Gatsby source plugin for building websites using Sanity.io as a backend.
16 lines (15 loc) • 738 B
TypeScript
import { SanityDocument } from '../types/sanity';
import { TypeMap } from './remoteGraphQLSchema';
import { GatsbyNodeIdCreator, GatsbyContentDigester, GatsbyNode, GatsbyNodeCreator, GatsbyParentChildLinker } from '../types/gatsby';
export declare const RESTRICTED_NODE_FIELDS: string[];
export interface ProcessingOptions {
typeMap: TypeMap;
createNode: GatsbyNodeCreator;
createNodeId: GatsbyNodeIdCreator;
createContentDigest: GatsbyContentDigester;
createParentChildLink: GatsbyParentChildLinker;
overlayDrafts: boolean;
skipCreate?: boolean;
}
export declare function processDocument(doc: SanityDocument, options: ProcessingOptions): GatsbyNode;
export declare function getTypeName(type: string): string;