Add "toString()" for ObjectID (#12463)

This commit is contained in:
TonyYang
2016-11-07 22:35:21 +08:00
committed by Masahiro Wakame
parent b006daa1c6
commit f555feb4fc

2
mongodb/index.d.ts vendored
View File

@@ -426,6 +426,8 @@ export class ObjectID {
getTimestamp(): Date;
// Returns the ObjectID id as a 24 byte hex string representation
toHexString(): string;
// Returns the ObjectID id as a 24 byte hex string representation
toString(): string;
}
// Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Binary.html