]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/plugins/server/plugin-constant-manager.model.ts
Introduce generic video constant manager for plugins
[github/Chocobozzz/PeerTube.git] / shared / models / plugins / server / plugin-constant-manager.model.ts
1 export interface ConstantManager <K extends string | number> {
2 addConstant: (key: K, label: string) => boolean
3 deleteConstant: (key: K) => boolean
4 getConstantValue: (key: K) => string
5 getConstants: () => Record<K, string>
6 resetConstants: () => void
7 }