@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
43 lines (41 loc) • 1.3 kB
TypeScript
import { CustomTypeModelFieldType } from "./types.js";
//#region src/types/model/richText.d.ts
/**
* A rich text custom type field.
*
* More details: {@link https://prismic.io/docs/rich-text-title}
*/
type CustomTypeModelRichTextField = CustomTypeModelRichTextMultiField | CustomTypeModelRichTextSingleField;
/**
* A rich text custom type field which supports multiple blocks of content.
*
* More details: {@link https://prismic.io/docs/rich-text-title}
*/
interface CustomTypeModelRichTextMultiField {
type: typeof CustomTypeModelFieldType.StructuredText;
config?: {
label?: string | null;
placeholder?: string;
allowTargetBlank?: boolean;
multi?: string;
labels?: readonly string[];
};
}
/**
* A rich text custom type field which supports one block of content.
*
* More details: {@link https://prismic.io/docs/rich-text-title}
*/
interface CustomTypeModelRichTextSingleField {
type: typeof CustomTypeModelFieldType.StructuredText;
config?: {
label?: string | null;
placeholder?: string;
allowTargetBlank?: boolean;
single?: string;
labels?: readonly string[];
};
}
//#endregion
export { CustomTypeModelRichTextField, CustomTypeModelRichTextMultiField, CustomTypeModelRichTextSingleField };
//# sourceMappingURL=richText.d.ts.map