Handle async validators

This commit is contained in:
Chocobozzz
2021-12-29 15:33:24 +01:00
parent e2aeb8ad0f
commit cc4bf76c13
15 changed files with 82 additions and 58 deletions

View File

@@ -19,7 +19,7 @@ export type RegisterClientFormFieldOptions = {
// Return undefined | null if there is no error or return a string with the detailed error
// Not supported by plugin setting registration
error?: (options: any) => { error: boolean, text?: string }
error?: (options: any) => Promise<{ error: boolean, text?: string }>
}
export interface RegisterClientVideoFieldOptions {