]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/plugins/client/register-client-form-field.model.ts
feature/ability to disable video history by default (#5728)
[github/Chocobozzz/PeerTube.git] / shared / models / plugins / client / register-client-form-field.model.ts
index 30fd632669894e3b52c63c8b7fd6281b31e655b3..153c4a6eac90eae7ff7f037ec07df7b41bbec410 100644 (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 {