Changed type in ObjectID.isValid (#13827)

This commit is contained in:
Federico Caselli
2017-01-07 14:44:26 +01:00
committed by Andy
parent 1af69c47fb
commit deb4e610b7

2
mongodb/index.d.ts vendored
View File

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