Skip to content

Commit

Permalink
Adding missing NS exports
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen committed May 26, 2023
1 parent 110c3a2 commit 5791bad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions integration-tests/tests/src/tests/sync/flexible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@
// fraction too long.

import { expect } from "chai";
import {
import Realm, {
BSON,
ClientResetMode,
ConfigurationWithSync,
ErrorCallback,
FlexibleSyncConfiguration,
Realm,
SessionStopPolicy,
CompensatingWriteError,
} from "realm";
Expand Down
5 changes: 5 additions & 0 deletions packages/realm/src/Realm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import {
Collection,
CollectionChangeCallback,
CollectionChangeSet,
CompensatingWriteError,
Configuration,
ConfigurationWithSync,
ConfigurationWithoutSync,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1291,6 +1294,7 @@ type CollectionType<
T = ValueType,
ChangeCallbackType = unknown,
> = Collection<KeyType, ValueType, EntryType, T, ChangeCallbackType>;
type CompensatingWriteErrorType = CompensatingWriteError;
type ConnectionStateType = ConnectionState;
type CredentialsType = Credentials;
type DictionaryType<T> = Dictionary<T>;
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 5791bad

Please sign in to comment.