aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/typings
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-09 09:57:32 +0200
committerChocobozzz <me@florianbigard.com>2020-04-09 09:57:32 +0200
commitbc0d801bb7a0cc503c1637f4a07bb51d68d85608 (patch)
tree6eb486085fb5b536309315b4db06c790acf98ed0 /server/typings
parent00c228363f0db1d181d546eebb0c7ec3eb487976 (diff)
downloadPeerTube-bc0d801bb7a0cc503c1637f4a07bb51d68d85608.tar.gz
PeerTube-bc0d801bb7a0cc503c1637f4a07bb51d68d85608.tar.zst
PeerTube-bc0d801bb7a0cc503c1637f4a07bb51d68d85608.zip
Refactor plugin helpers factory
Diffstat (limited to 'server/typings')
-rw-r--r--server/typings/plugins/register-server-option.model.ts10
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 @@
1import { logger } from '../../helpers/logger'
2import { PluginSettingsManager } from '../../../shared/models/plugins/plugin-settings-manager.model' 1import { PluginSettingsManager } from '../../../shared/models/plugins/plugin-settings-manager.model'
3import { PluginStorageManager } from '../../../shared/models/plugins/plugin-storage-manager.model' 2import { PluginStorageManager } from '../../../shared/models/plugins/plugin-storage-manager.model'
4import { RegisterServerHookOptions } from '../../../shared/models/plugins/register-server-hook.model' 3import { RegisterServerHookOptions } from '../../../shared/models/plugins/register-server-hook.model'
@@ -6,6 +5,11 @@ import { RegisterServerSettingOptions } from '../../../shared/models/plugins/reg
6import { PluginVideoCategoryManager } from '../../../shared/models/plugins/plugin-video-category-manager.model' 5import { PluginVideoCategoryManager } from '../../../shared/models/plugins/plugin-video-category-manager.model'
7import { PluginVideoLanguageManager } from '../../../shared/models/plugins/plugin-video-language-manager.model' 6import { PluginVideoLanguageManager } from '../../../shared/models/plugins/plugin-video-language-manager.model'
8import { PluginVideoLicenceManager } from '../../../shared/models/plugins/plugin-video-licence-manager.model' 7import { PluginVideoLicenceManager } from '../../../shared/models/plugins/plugin-video-licence-manager.model'
8import { Logger } from 'winston'
9
10export type PeerTubeHelpers = {
11 logger: Logger
12}
9 13
10export type RegisterServerOptions = { 14export 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}