aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/typings/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'server/typings/plugins')
-rw-r--r--server/typings/plugins/index.d.ts2
-rw-r--r--server/typings/plugins/plugin-library.model.ts4
-rw-r--r--server/typings/plugins/register-server-option.model.ts (renamed from server/typings/plugins/register-options.model.ts)10
3 files changed, 8 insertions, 8 deletions
diff --git a/server/typings/plugins/index.d.ts b/server/typings/plugins/index.d.ts
index bddb3089e..9570579ef 100644
--- a/server/typings/plugins/index.d.ts
+++ b/server/typings/plugins/index.d.ts
@@ -1,2 +1,2 @@
1export * from './register-options.model' 1export * from './register-server-option.model'
2export * from './plugin-library.model' 2export * from './plugin-library.model'
diff --git a/server/typings/plugins/plugin-library.model.ts b/server/typings/plugins/plugin-library.model.ts
index fd90a3b46..5b517ee9f 100644
--- a/server/typings/plugins/plugin-library.model.ts
+++ b/server/typings/plugins/plugin-library.model.ts
@@ -1,7 +1,7 @@
1import { RegisterOptions } from './register-options.model' 1import { RegisterServerOptions } from './register-server-option.model'
2 2
3export interface PluginLibrary { 3export interface PluginLibrary {
4 register: (options: RegisterOptions) => Promise<any> 4 register: (options: RegisterServerOptions) => Promise<any>
5 5
6 unregister: () => Promise<any> 6 unregister: () => Promise<any>
7} 7}
diff --git a/server/typings/plugins/register-options.model.ts b/server/typings/plugins/register-server-option.model.ts
index 007ef5e1b..91a06a7c5 100644
--- a/server/typings/plugins/register-options.model.ts
+++ b/server/typings/plugins/register-server-option.model.ts
@@ -1,13 +1,13 @@
1import { logger } from '../../helpers/logger' 1import { logger } from '../../helpers/logger'
2import { RegisterHookOptions } from '../../../shared/models/plugins/register-hook.model'
3import { RegisterSettingOptions } from '../../../shared/models/plugins/register-setting.model'
4import { PluginSettingsManager } from '../../../shared/models/plugins/plugin-settings-manager.model' 2import { PluginSettingsManager } from '../../../shared/models/plugins/plugin-settings-manager.model'
5import { PluginStorageManager } from '../../../shared/models/plugins/plugin-storage-manager.model' 3import { PluginStorageManager } from '../../../shared/models/plugins/plugin-storage-manager.model'
4import { RegisterServerHookOptions } from '../../../shared/models/plugins/register-server-hook.model'
5import { RegisterServerSettingOptions } from '../../../shared/models/plugins/register-server-setting.model'
6 6
7export type RegisterOptions = { 7export type RegisterServerOptions = {
8 registerHook: (options: RegisterHookOptions) => void 8 registerHook: (options: RegisterServerHookOptions) => void
9 9
10 registerSetting: (options: RegisterSettingOptions) => void 10 registerSetting: (options: RegisterServerSettingOptions) => void
11 11
12 settingsManager: PluginSettingsManager 12 settingsManager: PluginSettingsManager
13 13