UNPKG

@prismicio/mock

Version:

Generate mock Prismic documents, fields, Slices, and models for development and testing environments

8 lines (7 loc) 537 B
import * as prismic from "@prismicio/client"; import { MockModelConfig } from "../types"; export type MockContentRelationshipModelConfig<CustomTypeIDs extends string = string, Tags extends string = string> = { customTypeIDs?: readonly CustomTypeIDs[]; tags?: readonly Tags[]; } & MockModelConfig; export declare const contentRelationship: <CustomTypeIDs extends string, Tags extends string>(config: MockContentRelationshipModelConfig<CustomTypeIDs, Tags>) => prismic.CustomTypeModelContentRelationshipField<CustomTypeIDs, Tags>;