mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
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();
|
||||
|
||||
Vendored
+3
-1
@@ -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