From d2eb75b16ec9bbc6f656df6289af0665824c18ba 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 e40d5a2fb04..da41895076b 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,