]> 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 1faf13c42c494c46d5f8c1b593fce0a58ade4753..b64652a0ff8ca4bd99a6ad13c9bc9527bd214997 100644 (file)
@@ -1,5 +1,4 @@
 import { RegisterClientHookOptions } from '@shared/models/plugins/register-client-hook.model'
-import { Notifier } from '@app/core'
 
 export type RegisterClientOptions = {
   registerHook: (options: RegisterClientHookOptions) => void
@@ -14,7 +13,11 @@ export type RegisterClientHelpers = {
 
   getSettings: () => Promise<{ [ name: string ]: string }>
 
-  notifier: Notifier
+  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>
 }