]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/types/register-client-option.model.ts
Merge branch 'pr/2629' into develop
[github/Chocobozzz/PeerTube.git] / client / src / types / register-client-option.model.ts
1 import { RegisterClientHookOptions } from '@shared/models/plugins/register-client-hook.model'
2
3 export type RegisterClientOptions = {
4 registerHook: (options: RegisterClientHookOptions) => void
5
6 peertubeHelpers: RegisterClientHelpers
7 }
8
9 export type RegisterClientHelpers = {
10 getBaseStaticRoute: () => string
11
12 isLoggedIn: () => boolean
13
14 getSettings: () => Promise<{ [ name: string ]: string }>
15
16 notifier: {
17 info: (text: string, title?: string, timeout?: number) => void,
18 error: (text: string, title?: string, timeout?: number) => void,
19 success: (text: string, title?: string, timeout?: number) => void
20 }
21
22 translate: (toTranslate: string) => Promise<string>
23 }