Skip to content

Commit

Permalink
Use TS "private" instead of JS "#"
Browse files Browse the repository at this point in the history
  • Loading branch information
SleepyLeslie committed Jun 12, 2024
1 parent 9824b8d commit 913663c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/app/electron/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ type INI = { [key: string]: (INI | string | boolean) }

class Config {

#config: INI;
private config: INI;

constructor(c: INI) {
this.#config = c;
this.config = c;
}

/**
Expand All @@ -75,7 +75,7 @@ class Config {
validator: (value: string) => boolean,
defaultValue: string,
): void {
let confValue: INI[keyof INI] = this.#config;
let confValue: INI[keyof INI] = this.config;
for (const segment of confKey.split(".")) {
confValue = (confValue as INI)[segment];
if (confValue === undefined) {
Expand Down

0 comments on commit 913663c

Please sign in to comment.