Refactor & lint
This commit is contained in:
parent
e47d8a8179
commit
6608804d34
1 changed files with 127 additions and 134 deletions
|
|
@ -33,13 +33,13 @@ export const DEFAULT_SETTINGS: SyncSettings = {
|
|||
};
|
||||
|
||||
export class Settings {
|
||||
private settings: SyncSettings;
|
||||
private readonly lock: Lock = new Lock();
|
||||
|
||||
public readonly onSettingsChanged = new EventListeners<
|
||||
(newSettings: SyncSettings, oldSettings: SyncSettings) => unknown
|
||||
>();
|
||||
|
||||
private settings: SyncSettings;
|
||||
private readonly lock: Lock = new Lock();
|
||||
|
||||
public constructor(
|
||||
private readonly logger: Logger,
|
||||
initialState: Partial<SyncSettings> | undefined,
|
||||
|
|
|
|||
Loading…
Reference in a new issue