1
0
Fork 0
peertube/shared/models/plugins/plugin-settings-manager.model.ts

12 lines
354 B
TypeScript
Raw Normal View History

import * as Bluebird from 'bluebird'
export interface PluginSettingsManager {
2020-04-27 04:19:14 -04:00
getSetting: (name: string) => Bluebird<string | boolean>
getSettings: (names: string[]) => Bluebird<{ [settingName: string]: string | boolean }>
setSetting: (name: string, value: string) => Bluebird<any>
2020-04-30 03:28:39 -04:00
onSettingsChange: (cb: (names: string[]) => void) => void
}