diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-09 09:57:32 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-09 09:57:32 +0200 |
commit | bc0d801bb7a0cc503c1637f4a07bb51d68d85608 (patch) | |
tree | 6eb486085fb5b536309315b4db06c790acf98ed0 /server/typings/plugins | |
parent | 00c228363f0db1d181d546eebb0c7ec3eb487976 (diff) | |
download | PeerTube-bc0d801bb7a0cc503c1637f4a07bb51d68d85608.tar.gz PeerTube-bc0d801bb7a0cc503c1637f4a07bb51d68d85608.tar.zst PeerTube-bc0d801bb7a0cc503c1637f4a07bb51d68d85608.zip |
Refactor plugin helpers factory
Diffstat (limited to 'server/typings/plugins')
-rw-r--r-- | server/typings/plugins/register-server-option.model.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/server/typings/plugins/register-server-option.model.ts b/server/typings/plugins/register-server-option.model.ts index 54753cc01..76ac3cb9a 100644 --- a/server/typings/plugins/register-server-option.model.ts +++ b/server/typings/plugins/register-server-option.model.ts | |||
@@ -1,4 +1,3 @@ | |||
1 | import { logger } from '../../helpers/logger' | ||
2 | import { PluginSettingsManager } from '../../../shared/models/plugins/plugin-settings-manager.model' | 1 | import { PluginSettingsManager } from '../../../shared/models/plugins/plugin-settings-manager.model' |
3 | import { PluginStorageManager } from '../../../shared/models/plugins/plugin-storage-manager.model' | 2 | import { PluginStorageManager } from '../../../shared/models/plugins/plugin-storage-manager.model' |
4 | import { RegisterServerHookOptions } from '../../../shared/models/plugins/register-server-hook.model' | 3 | import { RegisterServerHookOptions } from '../../../shared/models/plugins/register-server-hook.model' |
@@ -6,6 +5,11 @@ import { RegisterServerSettingOptions } from '../../../shared/models/plugins/reg | |||
6 | import { PluginVideoCategoryManager } from '../../../shared/models/plugins/plugin-video-category-manager.model' | 5 | import { PluginVideoCategoryManager } from '../../../shared/models/plugins/plugin-video-category-manager.model' |
7 | import { PluginVideoLanguageManager } from '../../../shared/models/plugins/plugin-video-language-manager.model' | 6 | import { PluginVideoLanguageManager } from '../../../shared/models/plugins/plugin-video-language-manager.model' |
8 | import { PluginVideoLicenceManager } from '../../../shared/models/plugins/plugin-video-licence-manager.model' | 7 | import { PluginVideoLicenceManager } from '../../../shared/models/plugins/plugin-video-licence-manager.model' |
8 | import { Logger } from 'winston' | ||
9 | |||
10 | export type PeerTubeHelpers = { | ||
11 | logger: Logger | ||
12 | } | ||
9 | 13 | ||
10 | export type RegisterServerOptions = { | 14 | export type RegisterServerOptions = { |
11 | registerHook: (options: RegisterServerHookOptions) => void | 15 | registerHook: (options: RegisterServerHookOptions) => void |
@@ -20,7 +24,5 @@ export type RegisterServerOptions = { | |||
20 | videoLanguageManager: PluginVideoLanguageManager | 24 | videoLanguageManager: PluginVideoLanguageManager |
21 | videoLicenceManager: PluginVideoLicenceManager | 25 | videoLicenceManager: PluginVideoLicenceManager |
22 | 26 | ||
23 | peertubeHelpers: { | 27 | peertubeHelpers: PeerTubeHelpers |
24 | logger: typeof logger | ||
25 | } | ||
26 | } | 28 | } |