From cc4bf76c13e38e9065d49161b6e0485657424577 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 29 Dec 2021 15:33:24 +0100 Subject: Handle async validators --- shared/models/plugins/client/register-client-form-field.model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shared/models/plugins/client') diff --git a/shared/models/plugins/client/register-client-form-field.model.ts b/shared/models/plugins/client/register-client-form-field.model.ts index 30fd63266..153c4a6ea 100644 --- a/shared/models/plugins/client/register-client-form-field.model.ts +++ b/shared/models/plugins/client/register-client-form-field.model.ts @@ -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 { -- cgit v1.2.3