@@ -374,7 +374,7 @@ declare module 'mongoose' {
374
374
) : QueryWithHelpers < Array < DocType > , DocType , THelpers , RawDocType , 'find' > ;
375
375
find (
376
376
filter : FilterQuery < RawDocType >
377
- ) : QueryWithHelpers < Array < RawDocType > , DocType , THelpers , RawDocType , 'find' > ;
377
+ ) : QueryWithHelpers < Array < DocType > , DocType , THelpers , RawDocType , 'find' > ;
378
378
find ( ) : QueryWithHelpers < Array < DocType > , DocType , THelpers , RawDocType , 'find' > ;
379
379
380
380
/** Declares the query a findOne operation. When executed, returns the first found document. */
@@ -389,7 +389,7 @@ declare module 'mongoose' {
389
389
) : QueryWithHelpers < DocType | null , DocType , THelpers , RawDocType , 'findOne' > ;
390
390
findOne (
391
391
filter ?: FilterQuery < RawDocType >
392
- ) : QueryWithHelpers < DocType | null , RawDocType , THelpers , RawDocType , 'findOne' > ;
392
+ ) : QueryWithHelpers < DocType | null , DocType , THelpers , RawDocType , 'findOne' > ;
393
393
394
394
/** Creates a `findOneAndDelete` query: atomically finds the given document, deletes it, and returns the document as it was before deletion. */
395
395
findOneAndDelete (
0 commit comments