@prismicio/mock
Version:
Generate mock Prismic documents, fields, Slices, and models for development and testing environments
14 lines (13 loc) • 707 B
TypeScript
import { ValueForModelMapConfigs } from "../lib/valueForModelMap.js";
import { MockValueConfig, ModelValue } from "../types.js";
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.ts.map