diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-29 15:33:24 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-01-03 14:20:52 +0100 |
commit | cc4bf76c13e38e9065d49161b6e0485657424577 (patch) | |
tree | d7ecc6bd58037c41587eb911776b676592985cd1 /shared/models | |
parent | e2aeb8ad0f3055d54ac416ec5908d26b70aac4be (diff) | |
download | PeerTube-cc4bf76c13e38e9065d49161b6e0485657424577.tar.gz PeerTube-cc4bf76c13e38e9065d49161b6e0485657424577.tar.zst PeerTube-cc4bf76c13e38e9065d49161b6e0485657424577.zip |
Handle async validators
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/plugins/client/register-client-form-field.model.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 = { | |||
19 | 19 | ||
20 | // Return undefined | null if there is no error or return a string with the detailed error | 20 | // Return undefined | null if there is no error or return a string with the detailed error |
21 | // Not supported by plugin setting registration | 21 | // Not supported by plugin setting registration |
22 | error?: (options: any) => { error: boolean, text?: string } | 22 | error?: (options: any) => Promise<{ error: boolean, text?: string }> |
23 | } | 23 | } |
24 | 24 | ||
25 | export interface RegisterClientVideoFieldOptions { | 25 | export interface RegisterClientVideoFieldOptions { |