add missing ObjectId methods to bson type definition

This commit is contained in:
Sarun Rattanasiri
2017-03-27 01:03:48 +07:00
parent bb7d6b2d08
commit 9b5ff60d92
+2
View File
@@ -68,6 +68,8 @@ export class ObjectId {
static isValid(id: number | string | ObjectId): boolean;
constructor(id?: number | string | ObjectId);
toHexString(): string;
getTimestamp(): Date;
}
export type ObjectID = ObjectId;
export class BSONRegExp {