Make getter

This commit is contained in:
Andras Schmelczer 2026-09-30 07:48:50 +01:00
commit 727c4b80ef

View file

@ -102,6 +102,14 @@ export class SyncClient {
return this.cursorTracker.onRemoteCursorsUpdated; return this.cursorTracker.onRemoteCursorsUpdated;
} }
public get historyEntries(): SyncHistory["entries"] {
return this.history.entries;
}
public get settings(): SyncSettings {
return this.settingsStore.getSettings();
}
public static async create({ public static async create({
fs, fs,
persistence, persistence,
@ -247,14 +255,6 @@ export class SyncClient {
]); ]);
} }
public get historyEntries(): SyncHistory["entries"] {
return this.history.entries;
}
public get settings(): SyncSettings {
return this.settingsStore.getSettings();
}
public async start(): Promise<void> { public async start(): Promise<void> {
await this.lifecycle.withLock(async () => { await this.lifecycle.withLock(async () => {
this.assertNotDestroyed(); this.assertNotDestroyed();