Fix form options
This commit is contained in:
parent
0dec6c641f
commit
8428671a0a
5 changed files with 35 additions and 28 deletions
|
@ -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(),
|
||||
|
|
|
@ -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;
|
||||
|
|
Reference in a new issue