mongodb.ObjectID has optional constructor string

This commit is contained in:
Václav Oborník 2014-02-25 09:44:01 +01:00
parent c2b5a97965
commit 39daafa17e

View File

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