PeerTube/shared/models/plugins/server/managers/plugin-settings-manager.mod...

10 lines
321 B
TypeScript
Raw Normal View History

export interface PluginSettingsManager {
2020-06-26 01:37:26 -05:00
getSetting: (name: string) => Promise<string | boolean>
2020-04-27 03:19:14 -05:00
2020-06-26 01:37:26 -05:00
getSettings: (names: string[]) => Promise<{ [settingName: string]: string | boolean }>
2020-06-26 01:37:26 -05:00
setSetting: (name: string, value: string) => Promise<any>
2020-04-30 02:28:39 -05:00
2021-04-20 09:02:15 -05:00
onSettingsChange: (cb: (names: string[]) => Promise<any>) => void
}