Skip to content

Commit

Permalink
chore: remove mistakenly committed changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 6, 2024
1 parent 2a6e76f commit 0643edd
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions types/models.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -675,9 +675,9 @@ declare module 'mongoose' {
findOneAndUpdate<ResultDoc = THydratedDocumentType>(
filter: FilterQuery<TRawDocType>,
update: UpdateQuery<TRawDocType>,
options: QueryOptions<TRawDocType> & { includeResultMetadata: true, lean: true }
options: QueryOptions<TRawDocType> & { lean: true }
): QueryWithHelpers<
ModifyResult<TRawDocType>,
GetLeanResultType<TRawDocType, TRawDocType, 'findOneAndUpdate'> | null,
ResultDoc,
TQueryHelpers,
TRawDocType,
Expand All @@ -686,14 +686,8 @@ declare module 'mongoose' {
findOneAndUpdate<ResultDoc = THydratedDocumentType>(
filter: FilterQuery<TRawDocType>,
update: UpdateQuery<TRawDocType>,
options: QueryOptions<TRawDocType> & { lean: true }
): QueryWithHelpers<
GetLeanResultType<TRawDocType, TRawDocType, 'findOneAndUpdate'> | null,
ResultDoc,
TQueryHelpers,
TRawDocType,
'findOneAndUpdate'
>;
options: QueryOptions<TRawDocType> & { includeResultMetadata: true }
): QueryWithHelpers<ModifyResult<ResultDoc>, ResultDoc, TQueryHelpers, TRawDocType, 'findOneAndUpdate'>;
findOneAndUpdate<ResultDoc = THydratedDocumentType>(
filter: FilterQuery<TRawDocType>,
update: UpdateQuery<TRawDocType>,
Expand Down

0 comments on commit 0643edd

Please sign in to comment.