aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/plugins')
-rw-r--r--shared/models/plugins/plugin-settings-manager.model.ts8
-rw-r--r--shared/models/plugins/plugin-storage-manager.model.ts6
2 files changed, 5 insertions, 9 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}
diff --git a/shared/models/plugins/plugin-storage-manager.model.ts b/shared/models/plugins/plugin-storage-manager.model.ts
index 8a1f389f1..51567044a 100644
--- a/shared/models/plugins/plugin-storage-manager.model.ts
+++ b/shared/models/plugins/plugin-storage-manager.model.ts
@@ -1,7 +1,5 @@
1import * as Bluebird from 'bluebird'
2
3export interface PluginStorageManager { 1export interface PluginStorageManager {
4 getData: (key: string) => Bluebird<string> 2 getData: (key: string) => Promise<string>
5 3
6 storeData: (key: string, data: any) => Bluebird<any> 4 storeData: (key: string, data: any) => Promise<any>
7} 5}