mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
mongodb.ObjectID has optional constructor string
This commit is contained in:
2
mongodb/mongodb.d.ts
vendored
2
mongodb/mongodb.d.ts
vendored
@@ -109,7 +109,7 @@ declare module "mongodb" {
|
||||
// Class documentation : http://mongodb.github.io/node-mongodb-native/api-bson-generated/objectid.html
|
||||
// Last update: doc. version 1.3.13 (28.08.2013)
|
||||
export class ObjectID {
|
||||
constructor (s: string);
|
||||
constructor (s?: string);
|
||||
|
||||
// Returns the ObjectID id as a 24 byte hex string representation
|
||||
public toHexString() : string;
|
||||
|
||||
Reference in New Issue
Block a user