Skip to content

Commit 84db3a0

Browse files
authored
Merge pull request #14123 from Automattic/vkarpov15/gh-14090
types: make property names show up in intellisense for UpdateQuery
2 parents 12c8bcd + 3002d65 commit 84db3a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ declare module 'mongoose' {
634634
* { age: 30 }
635635
* ```
636636
*/
637-
export type UpdateQuery<T> = _UpdateQuery<T> & AnyObject;
637+
export type UpdateQuery<T> = AnyKeys<T> & _UpdateQuery<T> & AnyObject;
638638

639639
/**
640640
* A more strict form of UpdateQuery that enforces updating only

0 commit comments

Comments
 (0)