gatsby-source-prismic
Version:
Gatsby source plugin for building websites using Prismic as a data source
13 lines (12 loc) • 652 B
TypeScript
import { CustomTypeModelField, SharedSliceModel } from "@prismicio/client";
import type { NodePluginArgs } from "gatsby";
import type { ObjectTypeComposerFieldConfigAsObjectDefinition } from "graphql-compose";
import type { PluginOptions } from "../types";
export type FieldModelToGraphQLConfigArgs = {
path: string[];
model: CustomTypeModelField;
sharedSliceModels: SharedSliceModel[];
gatsbyNodeArgs: NodePluginArgs;
pluginOptions: PluginOptions;
};
export declare const fieldModelToGraphQLConfig: (args: FieldModelToGraphQLConfigArgs) => ObjectTypeComposerFieldConfigAsObjectDefinition<any, Record<string, unknown>> | undefined;