Skip to content

Commit

Permalink
make value optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jneal-afs committed Oct 30, 2021
1 parent c6fd7f7 commit d205c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
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 | Record<string, unknown>, 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 d205c4d

Please sign in to comment.