From 9b5ff60d9238329385f6eeb685fcc9c545df7d78 Mon Sep 17 00:00:00 2001 From: Sarun Rattanasiri Date: Mon, 27 Mar 2017 01:03:48 +0700 Subject: [PATCH] add missing ObjectId methods to bson type definition --- types/bson/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/bson/index.d.ts b/types/bson/index.d.ts index 517ed8ede9..e34462b2b7 100644 --- a/types/bson/index.d.ts +++ b/types/bson/index.d.ts @@ -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 {