feat(Form): apply transformations (#2550)

Co-authored-by: Romain Hamel <rom.hml@gmail.com>
This commit is contained in:
kyyy
2024-11-12 22:43:40 +07:00
committed by GitHub
parent 95aa6f68b3
commit 75c5e87724
4 changed files with 240 additions and 82 deletions

View File

@@ -85,6 +85,11 @@ export interface FormFieldInjectedOptions<T> {
errorPattern?: RegExp
}
export interface ValidateReturnSchema<T> {
result: T
errors: FormError[] | null
}
export class FormValidationException extends Error {
formId: string | number
errors: FormErrorWithId[]