UNPKG

@prismicio/mock

Version:

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

17 lines (16 loc) 431 B
import * as prismic from "@prismicio/client"; import { capitalCase } from "../lib/changeCase.js"; import { createFaker } from "../lib/createFaker.js"; const geoPoint = (config) => { const faker = config.faker || createFaker(config.seed); return { type: prismic.CustomTypeModelFieldType.GeoPoint, config: { label: capitalCase(faker.word()) } }; }; export { geoPoint }; //# sourceMappingURL=geoPoint.js.map