aboutsummaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/SettingData.ts10
-rw-r--r--src/shared/settings/Properties.ts2
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;