UNPKG

@prismicio/mock

Version:

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

14 lines (13 loc) 710 B
import { ValueForModelMapConfigs } from "../lib/valueForModelMap.cjs"; import { MockValueConfig, ModelValue } from "../types.cjs"; import * as prismic from "@prismicio/client"; //#region src/value/customType.d.ts type MockCustomTypeValueConfig<Model extends prismic.CustomTypeModel = prismic.CustomTypeModel> = { withURL?: boolean; alternateLanguages?: prismic.PrismicDocument[]; configs?: ValueForModelMapConfigs; } & MockValueConfig<Model>; declare const customType: <Model extends prismic.CustomTypeModel = prismic.CustomTypeModel>(config: MockCustomTypeValueConfig<Model>) => ModelValue<Model>; //#endregion export { MockCustomTypeValueConfig, customType }; //# sourceMappingURL=customType.d.cts.map