UNPKG

from-schema

Version:

Infer TypeScript types from JSON schemas

10 lines (8 loc) 266 B
import { SchemaBase } from '../generic/SchemaBase'; export type StringBsonSchema = SchemaBase & { readonly bsonType: 'string'; readonly minLength?: number; readonly maxLength?: number; readonly pattern?: string; readonly examples?: string[]; };