SchemaOptions.safe can also be an object

See: [safe docs](http://mongoosejs.com/docs/guide.html#safe)
This commit is contained in:
Daniel Hritzkiv
2017-11-01 11:44:25 -04:00
committed by GitHub
parent 216ea719fa
commit 4e278d0f6d
+1 -1
View File
@@ -727,7 +727,7 @@ declare module "mongoose" {
minimize?: boolean;
read?: string;
/** defaults to true. */
safe?: boolean;
safe?: boolean | { w?: number | string; wtimeout?: number; j?: boolean };
/** defaults to null */
shardKey?: boolean;
/** defaults to true */