PeerTube/shared/models/plugins/server/settings/register-server-setting.mod...

13 lines
476 B
TypeScript
Raw Normal View History

2021-05-11 12:04:47 +02:00
import { RegisterClientFormFieldOptions } from '../../client'
2019-07-26 09:35:43 +02:00
2021-04-09 15:17:46 +02:00
export type RegisterServerSettingOptions = RegisterClientFormFieldOptions & {
// If the setting is not private, anyone can view its value (client code included)
// If the setting is private, only server-side hooks can access it
2019-07-26 09:35:43 +02:00
// Mainly used by the PeerTube client to get admin config
private: boolean
2019-07-24 11:17:42 +02:00
}
export interface RegisteredServerSettings {
2019-07-26 09:35:43 +02:00
registeredSettings: RegisterServerSettingOptions[]
2019-07-24 11:17:42 +02:00
}