MCPcopy Create free account
hub / github.com/Lemoncode/fonk / FormValidation

Interface FormValidation

typings/index.d.ts:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36): FormValidation;
37
38export interface FormValidation {
39 validateField: (
40 fieldId: string,
41 value: any,
42 values?: any
43 ) => Promise<ValidationResult | { [fieldId: string]: ValidationResult }>;
44 validateRecord: (values: any) => Promise<RecordValidationResult>;
45 validateForm: (values: any) => Promise<FormValidationResult>;
46 updateValidationSchema(validationSchema: ValidationSchema): void;
47}
48
49/**
50 * Function that returns a ValidationResult object with default values

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…