UNPKG

gatsby-source-prismic

Version:

Gatsby source plugin for building websites using Prismic as a data source

11 lines (10 loc) 629 B
import { ImageFieldImage } from "@prismicio/client"; import type { GatsbyCache } from "gatsby"; import type { ObjectTypeComposerFieldConfigAsObjectDefinition } from "graphql-compose"; import type { PluginOptions } from "../types"; import { GatsbyImageDataArgs } from "./resolveGatsbyImageData.server"; export type BuildGatsbyImageDataFieldConfigConfig = { cache: GatsbyCache; pluginOptions: PluginOptions; }; export declare const buildGatsbyImageDataFieldConfig: <TContext>(config: BuildGatsbyImageDataFieldConfigConfig) => ObjectTypeComposerFieldConfigAsObjectDefinition<ImageFieldImage, TContext, GatsbyImageDataArgs>;