mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-22 07:50:36 +01:00
feat(Form): apply transformations (#2550)
Co-authored-by: Romain Hamel <rom.hml@gmail.com>
This commit is contained in:
@@ -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[]
|
||||
|
||||
Reference in New Issue
Block a user