set document id property to be optional

This commit is contained in:
Simon
2016-09-28 18:07:02 -04:00
parent 2a4b0965b8
commit 4bf0e3eec3
+1 -1
View File
@@ -871,7 +871,7 @@ declare module "mongoose" {
/** Hash containing current validation errors. */
errors: Object;
/** The string version of this documents _id. */
id: string;
id?: string;
/** This documents _id. */
_id: any;
/** Boolean flag specifying if the document is new. */