mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
Changed type in ObjectID.isValid (#13827)
This commit is contained in:
2
mongodb/index.d.ts
vendored
2
mongodb/index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user