diff options
author | Shin'ya UEOKA <ueokande@i-beam.org> | 2019-08-29 03:37:58 +0000 |
---|---|---|
committer | Shin'ya UEOKA <ueokande@i-beam.org> | 2019-08-29 03:37:58 +0000 |
commit | 5197f22f9b9168a82e7cc6b0e0c1a6b970101e34 (patch) | |
tree | e77e02169d5ce6921c346afba6a64af6eada6133 /src/shared/Settings.ts | |
parent | 217b5a0e61cc5502ac430e3b9480abf0a60efdfd (diff) |
Fix type checkings
Diffstat (limited to 'src/shared/Settings.ts')
-rw-r--r-- | src/shared/Settings.ts | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/shared/Settings.ts b/src/shared/Settings.ts index 2a392df..d338e2a 100644 --- a/src/shared/Settings.ts +++ b/src/shared/Settings.ts @@ -21,13 +21,6 @@ export default interface Settings { blacklist: string[]; } -const DefaultProperties: Properties = PropertyDefs.defs.reduce( - (o: {[name: string]: PropertyDefs.Type}, def) => { - o[def.name] = def.defaultValue; - return o; - }, {}) as Properties; - - export const keymapsValueOf = (o: any): Keymaps => { return Object.keys(o).reduce((keymaps: Keymaps, key: string): Keymaps => { let op = operations.valueOf(o[key]); @@ -82,7 +75,7 @@ export const propertiesValueOf = (o: any): Properties => { } } return { - ...DefaultProperties, + ...PropertyDefs.defaultValues, ...o, }; }; |