1
0
Fork 0
peertube/shared/models/plugins/server/plugin-constant-manager.model.ts

8 lines
261 B
TypeScript
Raw Normal View History

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
}