UNPKG

@mobx-ecosystem/mobx-form

Version:

provides the ability to use forms with validation in MobX stores

22 lines (21 loc) 725 B
import { FormService } from "./form-service"; import { IForm, KeyParams, ValidationType } from "types"; export declare class CombinedFormService implements IForm<any> { formServices: FormService<any>[]; constructor(); setForms: (formServices: FormService<any>[]) => void; get fields(): any[]; get keys(): string[]; get isValid(): boolean; get isTouched(): boolean; get canBeSubmitted(): boolean; get disabled(): boolean; validate: (type: ValidationType) => Promise<void>; getValues: () => any[]; resetErrors: () => void; setValuesAsInit: () => void; reset: (keyParams?: KeyParams<any>) => void; disable: () => void; enable: () => void; touch: () => void; }