Skip to content

Commit

Permalink
Merge pull request #10942 from jneal-afs/fix-query-set-ts-type
Browse files Browse the repository at this point in the history
Fix ts types for query set
  • Loading branch information
vkarpov15 authored Nov 2, 2021
2 parents c3463c4 + d205c4d commit 4d12a62
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 4d12a62

Please sign in to comment.