Skip to content

Commit

Permalink
types: make property names show up in intellisense for UpdateQuery
Browse files Browse the repository at this point in the history
Fix #14090
  • Loading branch information
vkarpov15 committed Nov 25, 2023
1 parent 12c8bcd commit 3002d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Expand Up @@ -634,7 +634,7 @@ declare module 'mongoose' {
* { age: 30 }
* ```
*/
export type UpdateQuery<T> = _UpdateQuery<T> & AnyObject;
export type UpdateQuery<T> = AnyKeys<T> & _UpdateQuery<T> & AnyObject;

/**
* A more strict form of UpdateQuery that enforces updating only
Expand Down

0 comments on commit 3002d65

Please sign in to comment.