From 1ced0150feca358586e16ee1265c089ba54f28e8 Mon Sep 17 00:00:00 2001 From: hasezoey Date: Wed, 10 Jul 2024 13:14:03 +0200 Subject: [PATCH] types(query): fix usage of "RawDocType" where "DocType" should be passed --- types/query.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/query.d.ts b/types/query.d.ts index 39ff69de9df..87fabb10a7c 100644 --- a/types/query.d.ts +++ b/types/query.d.ts @@ -374,7 +374,7 @@ declare module 'mongoose' { ): QueryWithHelpers, DocType, THelpers, RawDocType, 'find'>; find( filter: FilterQuery - ): QueryWithHelpers, DocType, THelpers, RawDocType, 'find'>; + ): QueryWithHelpers, DocType, THelpers, RawDocType, 'find'>; find(): QueryWithHelpers, DocType, THelpers, RawDocType, 'find'>; /** Declares the query a findOne operation. When executed, returns the first found document. */ @@ -389,7 +389,7 @@ declare module 'mongoose' { ): QueryWithHelpers; findOne( filter?: FilterQuery - ): QueryWithHelpers; + ): QueryWithHelpers; /** Creates a `findOneAndDelete` query: atomically finds the given document, deletes it, and returns the document as it was before deletion. */ findOneAndDelete(