1
0
Fork 0
peertube/shared/models/plugins/plugin-settings-manager.model.ts
2020-05-04 16:21:39 +02:00

11 lines
354 B
TypeScript

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
}