mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Merge pull request #3325 from psnider/mongoose
Added mongoose.Types.ObjectId.toHexString()
This commit is contained in:
@@ -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();
|
||||
|
||||
4
mongoose/mongoose.d.ts
vendored
4
mongoose/mongoose.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user