1
0
Fork 0
peertube/shared/models/plugins/server/managers/plugin-settings-manager.model.ts
2021-05-11 13:33:11 +02:00

9 lines
321 B
TypeScript

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
}