Skip to content

Commit 88db8aa

Browse files
committed
types: add back mistakenly removed findByIdAndRemove() function signature
Fix #14132
1 parent 7584ffd commit 88db8aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

types/models.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,10 @@ declare module 'mongoose' {
567567
TRawDocType,
568568
'findOneAndDelete'
569569
>;
570+
findByIdAndRemove<ResultDoc = THydratedDocumentType>(
571+
id?: mongodb.ObjectId | any,
572+
options?: QueryOptions<TRawDocType> | null
573+
): QueryWithHelpers<ResultDoc | null, ResultDoc, TQueryHelpers, TRawDocType, 'findOneAndDelete'>;
570574

571575
/** Creates a `findOneAndUpdate` query, filtering by the given `_id`. */
572576
findByIdAndUpdate<ResultDoc = THydratedDocumentType>(

0 commit comments

Comments
 (0)