From deb4e610b742270397516e6cbb853557cd5363ab Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Sat, 7 Jan 2017 14:44:26 +0100 Subject: [PATCH] Changed type in ObjectID.isValid (#13827) --- mongodb/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongodb/index.d.ts b/mongodb/index.d.ts index 82f8f0dcce..bdf89c32f6 100644 --- a/mongodb/index.d.ts +++ b/mongodb/index.d.ts @@ -417,7 +417,7 @@ export class ObjectID { static createFromTime(time: number): ObjectID; // Checks if a value is a valid bson ObjectId // id - Value to be checked - static isValid(id: string | number): boolean; + static isValid(id: any): boolean; //Compares the equality of this ObjectID with otherID. equals(otherID: ObjectID): boolean; // Generate a 12 byte id string used in ObjectID's