From 6bb3226967a24870f0d8c0a533f91bd553339035 Mon Sep 17 00:00:00 2001 From: Franco Speziali Date: Wed, 16 Mar 2022 08:42:17 +0100 Subject: [PATCH] Added Config object --- src/Config/Config.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/Config/Config.ts diff --git a/src/Config/Config.ts b/src/Config/Config.ts new file mode 100644 index 0000000..ee71a94 --- /dev/null +++ b/src/Config/Config.ts @@ -0,0 +1,9 @@ +import { Scale } from "../types"; + +export default class Config { + scale: Scale; + + constructor({ scale }) { + this.scale = scale.toUpperCase() || Scale.Week; + } +}