@@ -883,17 +883,20 @@ declare module 'mongoose' {
883883
884884 /** Creates a `updateMany` query: updates all documents that match `filter` with `update`. */
885885 updateMany < ResultDoc = THydratedDocumentType > (
886- filter ? : RootFilterQuery < TRawDocType > ,
887- update ? : UpdateQuery < TRawDocType > | UpdateWithAggregationPipeline ,
886+ filter : RootFilterQuery < TRawDocType > ,
887+ update : UpdateQuery < TRawDocType > | UpdateWithAggregationPipeline ,
888888 options ?: ( mongodb . UpdateOptions & MongooseUpdateQueryOptions < TRawDocType > ) | null
889889 ) : QueryWithHelpers < UpdateWriteOpResult , ResultDoc , TQueryHelpers , TRawDocType , 'updateMany' , TInstanceMethods & TVirtuals > ;
890890
891891 /** Creates a `updateOne` query: updates the first document that matches `filter` with `update`. */
892892 updateOne < ResultDoc = THydratedDocumentType > (
893- filter ? : RootFilterQuery < TRawDocType > ,
894- update ? : UpdateQuery < TRawDocType > | UpdateWithAggregationPipeline ,
893+ filter : RootFilterQuery < TRawDocType > ,
894+ update : UpdateQuery < TRawDocType > | UpdateWithAggregationPipeline ,
895895 options ?: ( mongodb . UpdateOptions & MongooseUpdateQueryOptions < TRawDocType > ) | null
896896 ) : QueryWithHelpers < UpdateWriteOpResult , ResultDoc , TQueryHelpers , TRawDocType , 'updateOne' , TInstanceMethods & TVirtuals > ;
897+ updateOne < ResultDoc = THydratedDocumentType > (
898+ update : UpdateQuery < TRawDocType > | UpdateWithAggregationPipeline
899+ ) : QueryWithHelpers < UpdateWriteOpResult , ResultDoc , TQueryHelpers , TRawDocType , 'updateOne' , TInstanceMethods & TVirtuals > ;
897900
898901 /** Creates a Query, applies the passed conditions, and returns the Query. */
899902 where < ResultDoc = THydratedDocumentType > (
0 commit comments