Skip to content

Commit

Permalink
Fix ts types for query set
Browse files Browse the repository at this point in the history
  • Loading branch information
jneal-afs committed Oct 30, 2021
1 parent 271bc60 commit c6fd7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2442,7 +2442,7 @@ declare module 'mongoose' {
* This is useful for query middleware so you can add an update regardless
* of whether you use `updateOne()`, `updateMany()`, `findOneAndUpdate()`, etc.
*/
set(path: string, value: any): this;
set(path: string | Record<string, unknown>, value: any): this;

/** Sets query options. Some options only make sense for certain operations. */
setOptions(options: QueryOptions, overwrite?: boolean): this;
Expand Down

0 comments on commit c6fd7f7

Please sign in to comment.