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