From c73250cb664a2edbff1ae9ab99b99ea2768a07cc Mon Sep 17 00:00:00 2001 From: Vladimir Bloshchitsyn Date: Tue, 20 Feb 2018 10:12:56 +0300 Subject: [PATCH] fix Model.remove, deleteOne and deleteMany definitions --- types/mongoose/index.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index 5994c15d2f..5cc7df3f7a 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -7,6 +7,7 @@ // Alorel // jendrikw // Ethan Resnick +// vologa // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -2626,9 +2627,9 @@ declare module "mongoose" { callback?: (err: any, res: T) => void): Promise; /** Removes documents from the collection. */ - remove(conditions: any, callback?: (err: any) => void): Query; - deleteOne(conditions: any, callback?: (err: any) => void): Query; - deleteMany(conditions: any, callback?: (err: any) => void): Query; + remove(conditions: any, callback?: (err: any) => void): Query; + deleteOne(conditions: any, callback?: (err: any) => void): Query; + deleteMany(conditions: any, callback?: (err: any) => void): Query; /** * Same as update(), except MongoDB replace the existing document with the given document (no atomic operators like $set).