aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/server/plugin-constant-manager.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/plugins/server/plugin-constant-manager.model.ts')
-rw-r--r--shared/models/plugins/server/plugin-constant-manager.model.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/shared/models/plugins/server/plugin-constant-manager.model.ts b/shared/models/plugins/server/plugin-constant-manager.model.ts
new file mode 100644
index 000000000..4de3ce38f
--- /dev/null
+++ b/shared/models/plugins/server/plugin-constant-manager.model.ts
@@ -0,0 +1,7 @@
1export interface ConstantManager <K extends string | number> {
2 addConstant: (key: K, label: string) => boolean
3 deleteConstant: (key: K) => boolean
4 getConstantValue: (key: K) => string
5 getConstants: () => Record<K, string>
6 resetConstants: () => void
7}