Skip to content

Commit 3002d65

Browse files
committed
types: make property names show up in intellisense for UpdateQuery
Fix #14090
1 parent 12c8bcd commit 3002d65

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)