Skip to content

Commit

Permalink
Fixed MongoDB Client tests types
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen committed Jun 21, 2023
1 parent db590ab commit 50c698c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion integration-tests/tests/src/tests/sync/mongo-db-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@
////////////////////////////////////////////////////////////////////////////

import { expect } from "chai";
import { BSON, ChangeEvent, Credentials, DeleteResult, Document, InsertEvent, MongoDBCollection, User } from "realm";
import Realm, { BSON } from "realm";

import { authenticateUserBefore, importAppBefore } from "../../hooks";
import { sleep } from "../../utils/sleep";
import { buildAppConfig } from "../../utils/build-app-config";

type Document<IdType = any> = Realm.Services.MongoDB.Document<IdType>;
type MongoDBCollection<T extends Document> = Realm.Services.MongoDB.MongoDBCollection<T>;
type ChangeEvent<T extends Document> = Realm.Services.MongoDB.ChangeEvent<T>;
type InsertEvent<T extends Document> = Realm.Services.MongoDB.InsertEvent<T>;

type TestDocument = {
_id: number;
text?: string;
Expand Down

0 comments on commit 50c698c

Please sign in to comment.