UNPKG

tiny-mobx-form

Version:

Tiny (~2KB) tree-shakable MobX form library

13 lines (12 loc) 448 B
import { IFields, IForm, IFormOptions, IFormSchema, IInitialValues } from './types'; export declare class Form implements IForm { fields: IFields; private get fieldNames(); get isValid(): boolean; get errors(): string[]; get isDirty(): boolean; get values(): {}; constructor(fields: IFormSchema[], initialValues?: IInitialValues, options?: IFormOptions); showErrors: () => void; reset: () => void; }