From a12ccf32b9220c0674169f2d8d0df4de99c45f98 Mon Sep 17 00:00:00 2001 From: Luca Pizzini Date: Wed, 13 Jul 2022 10:02:50 +0200 Subject: [PATCH] =?UTF-8?q?Solves=20=C2=A0type=20error=20on=20=20option?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #12100 --- types/indexes.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/indexes.d.ts b/types/indexes.d.ts index fc3a51b0953..be0dcc81f9d 100644 --- a/types/indexes.d.ts +++ b/types/indexes.d.ts @@ -51,8 +51,8 @@ declare module 'mongoose' { * the model's schema except the `_id` index, and build any indexes that * are in your schema but not in MongoDB. */ - syncIndexes(options: mongodb.CreateIndexesOptions | null, callback: Callback>): void; - syncIndexes(options?: mongodb.CreateIndexesOptions): Promise>; + syncIndexes(options: SyncIndexesOptions | null, callback: Callback>): void; + syncIndexes(options?: SyncIndexesOptions): Promise>; } interface IndexesDiff {