UNPKG

815 BTypeScriptView Raw
1import { SanityDocument } from '../types/sanity';
2import { TypeMap } from './remoteGraphQLSchema';
3import { GatsbyNodeIdCreator, GatsbyContentDigester, GatsbyNode, GatsbyNodeCreator, GatsbyParentChildLinker } from '../types/gatsby';
4export declare const RESTRICTED_NODE_FIELDS: string[];
5export interface ProcessingOptions {
6 typeMap: TypeMap;
7 createNode: GatsbyNodeCreator;
8 createNodeId: GatsbyNodeIdCreator;
9 createContentDigest: GatsbyContentDigester;
10 createParentChildLink: GatsbyParentChildLinker;
11 overlayDrafts: boolean;
12 skipCreate?: boolean;
13}
14export declare function processDocument(doc: SanityDocument, options: ProcessingOptions): GatsbyNode;
15export declare function getTypeName(type: string): string;
16export declare function getConflictFreeFieldName(fieldName: string): string;