Allow overriding fetch implementation
This commit is contained in:
parent
6999276af4
commit
9cebf53707
3 changed files with 17 additions and 6 deletions
|
|
@ -45,6 +45,10 @@ export class SyncClient {
|
|||
return this._database.getDocuments().size;
|
||||
}
|
||||
|
||||
public set fetchImplementation(fetch: typeof globalThis.fetch) {
|
||||
this._syncService.fetchImplementation = fetch;
|
||||
}
|
||||
|
||||
public static async create(
|
||||
fs: FileSystemOperations,
|
||||
persistence: PersistenceProvider<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue