aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/server/plugin-constant-manager.model.ts
blob: 4de3ce38f8cdf1165f1c91ba7ebc259b7f853753 (plain) (blame)
1
2
3
4
5
6
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
}