mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00

Allow a plugin developer to get back constants values, and reset constants deletions or additions.
7 lines
261 B
TypeScript
7 lines
261 B
TypeScript
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
|
|
}
|