diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-24 11:17:42 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-07-24 11:17:42 +0200 |
commit | 9ae88819c202a6ce4a36b56506f508a5603e8eab (patch) | |
tree | 4936990dff918ceabe835dfa7192e5e4c6211dc6 /server/typings | |
parent | 5f189c9c85449951254646ddf6cd6c84bc4c06ff (diff) | |
download | PeerTube-9ae88819c202a6ce4a36b56506f508a5603e8eab.tar.gz PeerTube-9ae88819c202a6ce4a36b56506f508a5603e8eab.tar.zst PeerTube-9ae88819c202a6ce4a36b56506f508a5603e8eab.zip |
Change plugin models names
Diffstat (limited to 'server/typings')
-rw-r--r-- | server/typings/plugins/index.d.ts | 2 | ||||
-rw-r--r-- | server/typings/plugins/plugin-library.model.ts | 4 | ||||
-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 @@ | |||
1 | export * from './register-options.model' | 1 | export * from './register-server-option.model' |
2 | export * from './plugin-library.model' | 2 | export * 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 @@ | |||
1 | import { RegisterOptions } from './register-options.model' | 1 | import { RegisterServerOptions } from './register-server-option.model' |
2 | 2 | ||
3 | export interface PluginLibrary { | 3 | export 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 @@ | |||
1 | import { logger } from '../../helpers/logger' | 1 | import { logger } from '../../helpers/logger' |
2 | import { RegisterHookOptions } from '../../../shared/models/plugins/register-hook.model' | ||
3 | import { RegisterSettingOptions } from '../../../shared/models/plugins/register-setting.model' | ||
4 | import { PluginSettingsManager } from '../../../shared/models/plugins/plugin-settings-manager.model' | 2 | import { PluginSettingsManager } from '../../../shared/models/plugins/plugin-settings-manager.model' |
5 | import { PluginStorageManager } from '../../../shared/models/plugins/plugin-storage-manager.model' | 3 | import { PluginStorageManager } from '../../../shared/models/plugins/plugin-storage-manager.model' |
4 | import { RegisterServerHookOptions } from '../../../shared/models/plugins/register-server-hook.model' | ||
5 | import { RegisterServerSettingOptions } from '../../../shared/models/plugins/register-server-setting.model' | ||
6 | 6 | ||
7 | export type RegisterOptions = { | 7 | export 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 | ||