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

18 lines
484 B
TypeScript
Raw Normal View History

export type SettingValue = string | boolean
export interface SettingEntries {
[settingName: string]: SettingValue
}
export type SettingsChangeCallback = (settings: SettingEntries) => Promise<any>
export interface PluginSettingsManager {
getSetting: (name: string) => Promise<SettingValue>
2020-04-27 04:19:14 -04:00
getSettings: (names: string[]) => Promise<SettingEntries>
setSetting: (name: string, value: SettingValue) => Promise<any>
2020-04-30 03:28:39 -04:00
onSettingsChange: (cb: SettingsChangeCallback) => void
}