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;
|
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();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue