mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Introduce generic video constant manager for plugins
Allow a plugin developer to get back constants values, and reset constants deletions or additions.
This commit is contained in:
parent
de15b052c5
commit
dc3d902234
12 changed files with 470 additions and 232 deletions
|
|
@ -0,0 +1,7 @@
|
|||
export interface ConstantManager <K extends string | number> {
|
||||
addConstant: (key: K, label: string) => boolean
|
||||
deleteConstant: (key: K) => boolean
|
||||
getConstantValue: (key: K) => string
|
||||
getConstants: () => Record<K, string>
|
||||
resetConstants: () => void
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue