Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Duncalf committed Jan 17, 2022
1 parent 5231eb2 commit b959218
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function itUploadsDeletesAndDownloads(): void {
// Ensure everything has been uploaded
await this.realm.syncSession.uploadAllLocalChanges();

closeAndReopenRealm(this.realm, this.config);
this.realm = closeAndReopenRealm(this.realm, this.config);

if (!this.realm.syncSession) {
throw new Error("Expected a 'syncSession' on the realm");
Expand Down
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ declare namespace Realm {
error?: ErrorCallback;
}

// TODO This type does not work correctly without strictNullChecks enabled –
// Note: This type does not work correctly without strictNullChecks enabled –
// a config of { flexible: true } will incorrectly have a type error
interface FlexibleSyncConfiguration extends BaseSyncConfiguration {
flexible: true;
Expand Down

0 comments on commit b959218

Please sign in to comment.