aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/server/managers/plugin-settings-manager.model.ts
blob: 3c28c05656f2edbc22c7c228597731fd62658e78 (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[]) => Promise<any>) => void
}