diff options
author | Kim <1877318+kimsible@users.noreply.github.com> | 2020-04-15 09:08:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 09:08:59 +0200 |
commit | 74c2dece42d387506421623fbfadc83da811ebcd (patch) | |
tree | 4dc2afe77cdcaafd36461351990d6851da9ca071 /client/src/types | |
parent | bb152476c819e4c7487d080433c616f0d523e049 (diff) | |
download | PeerTube-74c2dece42d387506421623fbfadc83da811ebcd.tar.gz PeerTube-74c2dece42d387506421623fbfadc83da811ebcd.tar.zst PeerTube-74c2dece42d387506421623fbfadc83da811ebcd.zip |
Add notifier to plugin helpers (#2627)
* Add notifier to client PeerTubeHelpers plugin
* Add doc for notifier PeerTubeHelpers
* Add getBaseClientScriptsRoute to client PeerTubeHelpers plugin
* Add doc for getBaseClientScriptsRoute PeerTubeHelpers
* Remove unused helper
Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Diffstat (limited to 'client/src/types')
-rw-r--r-- | client/src/types/register-client-option.model.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/types/register-client-option.model.ts b/client/src/types/register-client-option.model.ts index 638b08653..1faf13c42 100644 --- a/client/src/types/register-client-option.model.ts +++ b/client/src/types/register-client-option.model.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import { RegisterClientHookOptions } from '@shared/models/plugins/register-client-hook.model' | 1 | import { RegisterClientHookOptions } from '@shared/models/plugins/register-client-hook.model' |
2 | import { Notifier } from '@app/core' | ||
2 | 3 | ||
3 | export type RegisterClientOptions = { | 4 | export type RegisterClientOptions = { |
4 | registerHook: (options: RegisterClientHookOptions) => void | 5 | registerHook: (options: RegisterClientHookOptions) => void |
@@ -13,5 +14,7 @@ export type RegisterClientHelpers = { | |||
13 | 14 | ||
14 | getSettings: () => Promise<{ [ name: string ]: string }> | 15 | getSettings: () => Promise<{ [ name: string ]: string }> |
15 | 16 | ||
17 | notifier: Notifier | ||
18 | |||
16 | translate: (toTranslate: string) => Promise<string> | 19 | translate: (toTranslate: string) => Promise<string> |
17 | } | 20 | } |