aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/typings/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'server/typings/plugins')
-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}