aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/plugin-settings-manager.model.ts
blob: db88ae6e79f0e98bd72375465fc0fb1c568ca745 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import * as Bluebird from 'bluebird'

export interface PluginSettingsManager {
  getSetting: (name: string) => Bluebird<string | boolean>

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

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

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