mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Updated dbref and exported from mongodb. https://github.com/DefinitelyTyped/DefinitelyTyped/issues/21717
This commit is contained in:
parent
6377c75303
commit
c4db7383b8
3
types/bson/index.d.ts
vendored
3
types/bson/index.d.ts
vendored
@ -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);
|
||||
|
||||
2
types/mongodb/index.d.ts
vendored
2
types/mongodb/index.d.ts
vendored
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user