@contentful/rich-text-types
Version:
Type definitions and constants for the Contentful rich text field type.
16 lines (15 loc) • 497 B
TypeScript
import { Document } from '../types';
export type ValidationError = {
name: string;
type?: string;
value?: Record<string, any> | string | number | boolean | null;
min?: number | string;
max?: number | string;
details?: string | null;
path?: (string | number)[];
contentTypeId?: string | string[];
nodeType?: string;
customMessage?: string;
expected?: string[];
};
export declare const validateRichTextDocument: (document: Document) => ValidationError[];