Merge pull request #3325 from psnider/mongoose

Added mongoose.Types.ObjectId.toHexString()
This commit is contained in:
Basarat Ali Syed
2014-12-15 13:43:07 +11:00
2 changed files with 5 additions and 1 deletions

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();

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 {