UNPKG

contentful-orm

Version:

A TypeScript-first ORM for Contentful CMS that enables a code-first approach to content modeling

13 lines (12 loc) 778 B
import { ContentfulValidation, NodeType, Mark } from '../types/contentful.js'; export declare const Validations: { readonly size: (min?: number, max?: number) => ContentfulValidation; readonly range: (min?: number, max?: number) => ContentfulValidation; readonly unique: (unique?: boolean) => ContentfulValidation; readonly regexp: (pattern: string, flags?: string) => ContentfulValidation; readonly in: (values: string[]) => ContentfulValidation; readonly linkContentType: (contentTypes: string[]) => ContentfulValidation; readonly linkMimetypeGroup: (mimetypes: string[]) => ContentfulValidation; readonly enabledNodeTypes: (nodeTypes: NodeType[]) => ContentfulValidation; readonly enabledMarks: (marks: Mark[]) => ContentfulValidation; };