mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-19 22:01:08 +08:00
mongoose: add context to the ModelFindByIdAndUpdateOptions (#27759)
This commit is contained in:
committed by
Sheetal Nandi
parent
44f4f58991
commit
ce3424af64
2
types/mongoose/index.d.ts
vendored
2
types/mongoose/index.d.ts
vendored
@@ -2983,6 +2983,8 @@ declare module "mongoose" {
|
||||
rawResult?: boolean;
|
||||
/** overwrites the schema's strict mode option for this update */
|
||||
strict?: boolean;
|
||||
/** The context option lets you set the value of this in update validators to the underlying query. */
|
||||
context?: string;
|
||||
}
|
||||
|
||||
interface ModelFindOneAndUpdateOptions extends ModelFindByIdAndUpdateOptions {
|
||||
|
||||
Reference in New Issue
Block a user