Added mongoose.Types.ObjectId.toHexString()

This commit is contained in:
psnider
2014-12-14 21:47:05 +00:00
parent 017cb72c29
commit 114d68a072
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -364,3 +364,5 @@ schema.virtual('display_name')
.get(function(): string { return this.name; })
.set((value: string): void => {});
var id : mongoose.Types.ObjectId;
var s = id.toHexString();
+3 -1
View File
@@ -78,7 +78,9 @@ declare module "mongoose" {
set(fn: Function): VirtualType;
}
export module Types {
export class ObjectId {}
export class ObjectId {
toHexString(): string;
}
}
export class Schema {