gatsby-source-payload-cms
Version:
Source data from Payload CMS
24 lines (23 loc) • 891 B
TypeScript
import type { GatsbyNode, SourceNodesArgs } from "gatsby";
/**
* The sourceNodes API is the heart of a Gatsby source plugin. This is where data is ingested and transformed into Gatsby's data layer.
* @see https://www.gatsbyjs.com/docs/reference/config-files/gatsby-node/#sourceNodes
*/
export declare const sourceNodes: GatsbyNode[`sourceNodes`];
interface INodeBuilderArgs {
gatsbyApi: SourceNodesArgs;
input: {
type: string;
data: {
[key: string]: any;
};
};
}
export declare function nodeBuilder({ gatsbyApi, input }: INodeBuilderArgs): void;
export declare function createLocalFileNode(context: SourceNodesArgs, data: any, relationshipIds?: {
[key: string]: string;
}): Promise<void>;
export declare function createAssetNode(context: SourceNodesArgs, data: any, relationshipIds?: {
[key: string]: string;
}): string;
export {};