Make getter
This commit is contained in:
parent
c897b60176
commit
727c4b80ef
1 changed files with 8 additions and 8 deletions
|
|
@ -102,6 +102,14 @@ export class SyncClient {
|
|||
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({
|
||||
fs,
|
||||
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> {
|
||||
await this.lifecycle.withLock(async () => {
|
||||
this.assertNotDestroyed();
|
||||
|
|
|
|||
Loading…
Reference in a new issue