2019-07-10 16:59:53 +02:00
|
|
|
export interface PluginSettingsManager {
|
2020-06-26 08:37:26 +02:00
|
|
|
getSetting: (name: string) => Promise<string | boolean>
|
2020-04-27 10:19:14 +02:00
|
|
|
|
2020-06-26 08:37:26 +02:00
|
|
|
getSettings: (names: string[]) => Promise<{ [settingName: string]: string | boolean }>
|
2019-07-10 16:59:53 +02:00
|
|
|
|
2020-06-26 08:37:26 +02:00
|
|
|
setSetting: (name: string, value: string) => Promise<any>
|
2020-04-30 09:28:39 +02:00
|
|
|
|
|
|
|
onSettingsChange: (cb: (names: string[]) => void) => void
|
2019-07-10 16:59:53 +02:00
|
|
|
}
|