From 314562fe7e7490e76a8663c124b3637d8e5ee73c Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Fri, 27 Dec 2024 12:00:41 -0500 Subject: [PATCH] types(schema): add missing removeIndex --- 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 438d1bfdac..6cb40f8a31 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -491,7 +491,7 @@ declare module 'mongoose' { remove(paths: string | Array): this; /** Removes index by name or index spec */ - remove(index: string | AnyObject): this; + removeIndex(index: string | AnyObject): this; /** Returns an Array of path strings that are required by this schema. */ requiredPaths(invalidate?: boolean): string[];