aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/plugin-settings-manager.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-26 08:37:26 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-07 08:28:14 +0200
commit583eb04b541175035d6d452ca626a96ebf2b7437 (patch)
tree114ba0a7004b4b2a7fc77444ef5fcb73414c6e93 /shared/models/plugins/plugin-settings-manager.model.ts
parent4504f09f6e85f09b0489debb547a17209d7176ea (diff)
downloadPeerTube-583eb04b541175035d6d452ca626a96ebf2b7437.tar.gz
PeerTube-583eb04b541175035d6d452ca626a96ebf2b7437.tar.zst
PeerTube-583eb04b541175035d6d452ca626a96ebf2b7437.zip
Upgrade to angular 10
Diffstat (limited to 'shared/models/plugins/plugin-settings-manager.model.ts')
-rw-r--r--shared/models/plugins/plugin-settings-manager.model.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/shared/models/plugins/plugin-settings-manager.model.ts b/shared/models/plugins/plugin-settings-manager.model.ts
index db88ae6e7..165f0dc5b 100644
--- a/shared/models/plugins/plugin-settings-manager.model.ts
+++ b/shared/models/plugins/plugin-settings-manager.model.ts
@@ -1,11 +1,9 @@
1import * as Bluebird from 'bluebird'
2
3export interface PluginSettingsManager { 1export interface PluginSettingsManager {
4 getSetting: (name: string) => Bluebird<string | boolean> 2 getSetting: (name: string) => Promise<string | boolean>
5 3
6 getSettings: (names: string[]) => Bluebird<{ [settingName: string]: string | boolean }> 4 getSettings: (names: string[]) => Promise<{ [settingName: string]: string | boolean }>
7 5
8 setSetting: (name: string, value: string) => Bluebird<any> 6 setSetting: (name: string, value: string) => Promise<any>
9 7
10 onSettingsChange: (cb: (names: string[]) => void) => void 8 onSettingsChange: (cb: (names: string[]) => void) => void
11} 9}