diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index ac92a9cd74..12da9c180b 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -1498,11 +1498,11 @@ declare module "mongoose" { */ findOneAndUpdate(callback?: (err: any, doc: DocType | null) => void): DocumentQuery; findOneAndUpdate(update: Object, - callback?: (err: any, doc: DocType | null) => void): DocumentQuery; + callback?: (err: any, doc: DocType | null, res: any) => void): DocumentQuery; findOneAndUpdate(query: Object | Query, update: Object, - callback?: (err: any, doc: DocType | null) => void): DocumentQuery; + callback?: (err: any, doc: DocType | null, res: any) => void): DocumentQuery; findOneAndUpdate(query: Object | Query, update: Object, options: QueryFindOneAndUpdateOptions, - callback?: (err: any, doc: DocType | null) => void): DocumentQuery; + callback?: (err: any, doc: DocType | null, res: any) => void): DocumentQuery; /** * Specifies a $geometry condition. geometry() must come after either intersects() or within(). @@ -2471,10 +2471,10 @@ declare module "mongoose" { */ findOneAndUpdate(): DocumentQuery; findOneAndUpdate(conditions: Object, update: Object, - callback?: (err: any, res: T | null) => void): DocumentQuery; + callback?: (err: any, doc: T | null, res: any) => void): DocumentQuery; findOneAndUpdate(conditions: Object, update: Object, options: ModelFindOneAndUpdateOptions, - callback?: (err: any, res: T | null) => void): DocumentQuery; + callback?: (err: any, doc: T | null, res: any) => void): DocumentQuery; /** * geoNear support for Mongoose