aboutsummaryrefslogtreecommitdiffstats
path: root/code/app/src/models/internal/IForm.ts
blob: c14b7707ae79e30d04a29ffac70f2d81d24cbec1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import type { FormError } from "./FormError";

export interface IForm {
    fields: Record<string, IFormField>;
    error: FormError;
    get_payload: Function;
    submit_async: Function;
    isLoading: boolean;
    showError: boolean;
}

export interface IFormField {
    value: any;
    errors: Array<string>;
}