mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
add missing ObjectId methods to bson type definition
This commit is contained in:
Vendored
+2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user