]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/types/register-client-option.model.ts
Translated using Weblate (Bulgarian)
[github/Chocobozzz/PeerTube.git] / client / src / types / register-client-option.model.ts
index 473c2500f0d82e947b47702d0a97d77d444fa808..b64652a0ff8ca4bd99a6ad13c9bc9527bd214997 100644 (file)
@@ -3,9 +3,21 @@ import { RegisterClientHookOptions } from '@shared/models/plugins/register-clien
 export type RegisterClientOptions = {
   registerHook: (options: RegisterClientHookOptions) => void
 
-  peertubeHelpers: {
-    getBaseStaticRoute: () => string
+  peertubeHelpers: RegisterClientHelpers
+}
+
+export type RegisterClientHelpers = {
+  getBaseStaticRoute: () => string
+
+  isLoggedIn: () => boolean
 
-    getSettings: () => Promise<{ [ name: string ]: string }>
+  getSettings: () => Promise<{ [ name: string ]: string }>
+
+  notifier: {
+    info: (text: string, title?: string, timeout?: number) => void,
+    error: (text: string, title?: string, timeout?: number) => void,
+    success: (text: string, title?: string, timeout?: number) => void
   }
+
+  translate: (toTranslate: string) => Promise<string>
 }