aboutsummaryrefslogtreecommitdiff
path: root/src/content/repositories/SettingRepository.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/repositories/SettingRepository.ts')
-rw-r--r--src/content/repositories/SettingRepository.ts22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/content/repositories/SettingRepository.ts b/src/content/repositories/SettingRepository.ts
new file mode 100644
index 0000000..ce13c25
--- /dev/null
+++ b/src/content/repositories/SettingRepository.ts
@@ -0,0 +1,22 @@
+import Settings, { DefaultSetting } from '../../shared/Settings';
+
+let current: Settings = DefaultSetting;
+
+export default interface SettingRepository {
+ set(setting: Settings): void;
+
+ get(): Settings;
+
+ // eslint-disable-next-line semi
+}
+
+export class SettingRepositoryImpl implements SettingRepository {
+ set(setting: Settings): void {
+ current = setting;
+ }
+
+ get(): Settings {
+ return current;
+ }
+
+}