X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Ftypes%2Fregister-client-option.model.ts;h=3415ef08fa4839555e58b8879046e20e878bcf72;hb=6d210220be0875d63461829d83c6e3a59d05cf7a;hp=16c92134422107824555943800d0349d03a8463b;hpb=3c47fa3bc0e3f2362bb17976057287a7e9aba46b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/types/register-client-option.model.ts b/client/src/types/register-client-option.model.ts index 16c921344..3415ef08f 100644 --- a/client/src/types/register-client-option.model.ts +++ b/client/src/types/register-client-option.model.ts @@ -19,23 +19,27 @@ export type RegisterClientOptions = { export type RegisterClientHelpers = { getBaseStaticRoute: () => string + getBaseRouterRoute: () => string + isLoggedIn: () => boolean + getAuthHeader: () => { 'Authorization': string } | undefined + getSettings: () => Promise<{ [ name: string ]: string }> getServerConfig: () => Promise notifier: { - info: (text: string, title?: string, timeout?: number) => void, - error: (text: string, title?: string, timeout?: number) => void, + info: (text: string, title?: string, timeout?: number) => void + error: (text: string, title?: string, timeout?: number) => void success: (text: string, title?: string, timeout?: number) => void } showModal: (input: { - title: string, - content: string, - close?: boolean, - cancel?: { value: string, action?: () => void }, + title: string + content: string + close?: boolean + cancel?: { value: string, action?: () => void } confirm?: { value: string, action?: () => void } }) => void