From 58c1e846482575a90d23a39e35711fa1a51e3c33 Mon Sep 17 00:00:00 2001 From: Justin Grant Date: Mon, 2 Aug 2021 12:52:27 -0700 Subject: [PATCH] fix(NODE-3510): omit incorrect `| void` in declaration of Promise overload of `rename()` (#2922) --- src/collection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collection.ts b/src/collection.ts index e40d5a2fb0..da41895076 100644 --- a/src/collection.ts +++ b/src/collection.ts @@ -621,7 +621,7 @@ export class Collection { */ rename(newName: string): Promise; rename(newName: string, callback: Callback): void; - rename(newName: string, options: RenameOptions): Promise | void; + rename(newName: string, options: RenameOptions): Promise; rename(newName: string, options: RenameOptions, callback: Callback): void; rename( newName: string,