aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/types/register-client-option.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/types/register-client-option.model.ts')
-rw-r--r--client/src/types/register-client-option.model.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/src/types/register-client-option.model.ts b/client/src/types/register-client-option.model.ts
index 1faf13c42..b64652a0f 100644
--- a/client/src/types/register-client-option.model.ts
+++ b/client/src/types/register-client-option.model.ts
@@ -1,5 +1,4 @@
1import { RegisterClientHookOptions } from '@shared/models/plugins/register-client-hook.model' 1import { RegisterClientHookOptions } from '@shared/models/plugins/register-client-hook.model'
2import { Notifier } from '@app/core'
3 2
4export type RegisterClientOptions = { 3export type RegisterClientOptions = {
5 registerHook: (options: RegisterClientHookOptions) => void 4 registerHook: (options: RegisterClientHookOptions) => void
@@ -14,7 +13,11 @@ export type RegisterClientHelpers = {
14 13
15 getSettings: () => Promise<{ [ name: string ]: string }> 14 getSettings: () => Promise<{ [ name: string ]: string }>
16 15
17 notifier: Notifier 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 }
18 21
19 translate: (toTranslate: string) => Promise<string> 22 translate: (toTranslate: string) => Promise<string>
20} 23}