This commit is contained in:
CaselIT 2017-11-27 22:33:05 +01:00
parent 6377c75303
commit c4db7383b8
2 changed files with 4 additions and 1 deletions

View File

@ -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);

View File

@ -22,7 +22,7 @@ export function connect(uri: string, options?: MongoClientOptions): Promise<Db>;
export function connect(uri: string, callback: MongoCallback<Db>): void;
export function connect(uri: string, options: MongoClientOptions, callback: MongoCallback<Db>): 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 {