datatypes-validation
Version:
     
24 lines • 606 B
TypeScript
import { IRulesErrorTypes } from "./RulesInterface";
import { Field } from "../data/Field";
export interface IFieldError {
type: IRulesErrorTypes;
shortMessage: string;
longMessage: string;
context?: any;
}
export interface ICustomFieldError {
type: string;
shortMessage: string;
longMessage: string;
context?: any;
}
export interface IFieldsObject {
[key: string]: Field;
}
export interface IFieldToObject {
path: string | undefined | null;
value: any;
label: string | undefined | null;
error: IFieldError;
}
//# sourceMappingURL=FieldInterface.d.ts.map