diff options
author | Shin'ya UEOKA <ueokande@i-beam.org> | 2019-10-05 13:56:21 +0000 |
---|---|---|
committer | Shin'ya UEOKA <ueokande@i-beam.org> | 2019-10-07 12:31:13 +0000 |
commit | 8428671a0acf47a4a90b6b1f39cf94401f1e5520 (patch) | |
tree | ea0a8bc79f8f0b3ab2f55e64e26df231149a62c7 /src/shared | |
parent | 0dec6c641fc11348f89a12680a087ccda1181f66 (diff) |
Fix form options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/SettingData.ts | 10 | ||||
-rw-r--r-- | src/shared/settings/Properties.ts | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/shared/SettingData.ts b/src/shared/SettingData.ts index 2dedfef..c28a5dd 100644 --- a/src/shared/SettingData.ts +++ b/src/shared/SettingData.ts @@ -141,13 +141,13 @@ export class JSONTextSettings { } export class FormSettings { - private keymaps: FormKeymaps; + public readonly keymaps: FormKeymaps; - private search: FormSearch; + public readonly search: FormSearch; - private properties: Properties; + public readonly properties: Properties; - private blacklist: Blacklist; + public readonly blacklist: Blacklist; constructor( keymaps: FormKeymaps, @@ -210,7 +210,7 @@ export class FormSettings { keymaps: ReturnType<FormKeymaps['toJSON']>; search: ReturnType<FormSearch['toJSON']>; properties: ReturnType<Properties['toJSON']>; - blacklist: string[]; + blacklist: ReturnType<Blacklist['toJSON']>; } { return { keymaps: this.keymaps.toJSON(), diff --git a/src/shared/settings/Properties.ts b/src/shared/settings/Properties.ts index 1bc4c7f..63ff991 100644 --- a/src/shared/settings/Properties.ts +++ b/src/shared/settings/Properties.ts @@ -59,7 +59,7 @@ export default class Properties { hintchars?: string; smoothscroll?: boolean; complete?: string; - }) { + } = {}) { this.hintchars = hintchars || defaultValues.hintchars; this.smoothscroll = smoothscroll || defaultValues.smoothscroll; this.complete = complete || defaultValues.complete; |