From c4db7383b82fc6e44ce71b46d695543b3a6e62df Mon Sep 17 00:00:00 2001 From: CaselIT Date: Mon, 27 Nov 2017 22:33:05 +0100 Subject: [PATCH] Updated dbref and exported from mongodb. https://github.com/DefinitelyTyped/DefinitelyTyped/issues/21717 --- types/bson/index.d.ts | 3 +++ types/mongodb/index.d.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/types/bson/index.d.ts b/types/bson/index.d.ts index 2b6a636e89..5197d30d88 100644 --- a/types/bson/index.d.ts +++ b/types/bson/index.d.ts @@ -55,6 +55,9 @@ export class Code { } export class DBRef { constructor(namespace: string, oid: ObjectID, db?: string); + namespace: string; + oid: ObjectID; + db?: string; } export class Double { constructor(value: number); diff --git a/types/mongodb/index.d.ts b/types/mongodb/index.d.ts index 32bc523d38..fbbc318a33 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -22,7 +22,7 @@ export function connect(uri: string, options?: MongoClientOptions): Promise; export function connect(uri: string, callback: MongoCallback): void; export function connect(uri: string, options: MongoClientOptions, callback: MongoCallback): void; -export { Binary, Double, Long, Decimal128, MaxKey, MinKey, ObjectID, ObjectId, Timestamp } from 'bson'; +export { Binary, Double, Long, Decimal128, MaxKey, MinKey, ObjectID, ObjectId, Timestamp, DBRef } from 'bson'; // Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/MongoClient.html export class MongoClient {