aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/plugin-settings-manager.model.ts
blob: 165f0dc5bc840450e2eef547cd44bee06a8b668c (plain) (blame)
1
2
3
4
5
6
7
8
9
export interface PluginSettingsManager {
  getSetting: (name: string) => Promise<string | boolean>

  getSettings: (names: string[]) => Promise<{ [settingName: string]: string | boolean }>

  setSetting: (name: string, value: string) => Promise<any>

  onSettingsChange: (cb: (names: string[]) => void) => void
}