diff --git a/types/index.d.ts b/types/index.d.ts index 08841ac2886..456d392944c 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -634,7 +634,7 @@ declare module 'mongoose' { * { age: 30 } * ``` */ - export type UpdateQuery = _UpdateQuery & AnyObject; + export type UpdateQuery = AnyKeys & _UpdateQuery & AnyObject; /** * A more strict form of UpdateQuery that enforces updating only