diff --git a/integration-tests/tests/src/tests/sync/flexible.ts b/integration-tests/tests/src/tests/sync/flexible.ts index c824542cb73..a6e5599509c 100644 --- a/integration-tests/tests/src/tests/sync/flexible.ts +++ b/integration-tests/tests/src/tests/sync/flexible.ts @@ -29,13 +29,12 @@ // fraction too long. import { expect } from "chai"; -import { +import Realm, { BSON, ClientResetMode, ConfigurationWithSync, ErrorCallback, FlexibleSyncConfiguration, - Realm, SessionStopPolicy, CompensatingWriteError, } from "realm"; diff --git a/packages/realm/src/Realm.ts b/packages/realm/src/Realm.ts index 21a76475ce2..5ab3a56d66a 100644 --- a/packages/realm/src/Realm.ts +++ b/packages/realm/src/Realm.ts @@ -50,6 +50,7 @@ import { Collection, CollectionChangeCallback, CollectionChangeSet, + CompensatingWriteError, Configuration, ConfigurationWithSync, ConfigurationWithoutSync, @@ -220,12 +221,14 @@ export class Realm { public static ClientResetMode = ClientResetMode; /** @deprecated Please use named imports */ public static Collection = Collection; + public static CompensatingWriteError = CompensatingWriteError; /** @deprecated Please use named imports */ public static ConnectionState = ConnectionState; /** @deprecated Please use named imports */ public static Credentials = Credentials; /** @deprecated Please use named imports */ public static Dictionary = Dictionary; + public static flags = flags; /** @deprecated Please use named imports */ public static List = List; // TODO: Decide if we want to deprecate this as well @@ -1291,6 +1294,7 @@ type CollectionType< T = ValueType, ChangeCallbackType = unknown, > = Collection; +type CompensatingWriteErrorType = CompensatingWriteError; type ConnectionStateType = ConnectionState; type CredentialsType = Credentials; type DictionaryType = Dictionary; @@ -1433,6 +1437,7 @@ export declare namespace Realm { CollectionChangeSet, /** @deprecated Please use named imports */ CollectionType as Collection, + CompensatingWriteErrorType, /** @deprecated Please use named imports */ ConfigurationWithoutSync, /** @deprecated Please use named imports */