Merge pull request #13194 from bertolo1988/types-2.0

fix SchemaOptions.versionKey type
This commit is contained in:
Horiuchi_H
2016-12-09 11:28:44 +09:00
committed by GitHub
+1 -1
View File
@@ -717,7 +717,7 @@ declare module "mongoose" {
/** defaults to true */
validateBeforeSave?: boolean;
/** defaults to "__v" */
versionKey?: string;
versionKey?: string|boolean;
/**
* skipVersioning allows excluding paths from
* versioning (the internal revision will not be