We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 017cb72 commit 114d68aCopy full SHA for 114d68a
mongoose/mongoose-tests.ts
@@ -364,3 +364,5 @@ schema.virtual('display_name')
364
.get(function(): string { return this.name; })
365
.set((value: string): void => {});
366
367
+var id : mongoose.Types.ObjectId;
368
+var s = id.toHexString();
mongoose/mongoose.d.ts
@@ -78,7 +78,9 @@ declare module "mongoose" {
78
set(fn: Function): VirtualType;
79
}
80
export module Types {
81
- export class ObjectId {}
+ export class ObjectId {
82
+ toHexString(): string;
83
+ }
84
85
86
export class Schema {
0 commit comments