UNPKG

@vtaits/form-schema

Version:

Serialization and parsing form values by schema

21 lines (17 loc) 503 B
import { o as FieldType } from './types-DafXrhi5.js'; import { B as BaseFieldSchema } from './types-BSr5Y0bw.js'; type InputSchema<FormApi> = BaseFieldSchema<FormApi, string> & { maxLength?: number; minLength?: number; /** * serialize as a number */ isNumber?: boolean; /** * autocomplete suggestions */ options?: readonly string[]; regExp?: string | RegExp; }; declare const input: FieldType<InputSchema<unknown>>; export { type InputSchema, input };