From 3002d65eaedc2051878f9b429201c7342440aa8f Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Sat, 25 Nov 2023 15:52:23 -0500 Subject: [PATCH] types: make property names show up in intellisense for UpdateQuery Fix #14090 --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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