Chocobozzz/PeerTube

View on GitHub
packages/models/src/plugins/server/plugin-constant-manager.model.ts

Summary

Maintainability
A
0 mins
Test Coverage
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
}