Skip to content

Commit

Permalink
Merge pull request #14123 from Automattic/vkarpov15/gh-14090
Browse files Browse the repository at this point in the history
types: make property names show up in intellisense for UpdateQuery
  • Loading branch information
vkarpov15 committed Nov 26, 2023
2 parents 12c8bcd + 3002d65 commit 84db3a0
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 84db3a0

Please sign in to comment.