mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
Merge pull request #21176 from dhritzkiv/patch-3
SchemaOptions.safe can also be an object
This commit is contained in:
2
types/mongoose/index.d.ts
vendored
2
types/mongoose/index.d.ts
vendored
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user