Skip to content

Commit 58c1e84

Browse files
authored
fix(NODE-3510): omit incorrect | void in declaration of Promise overload of rename() (#2922)
1 parent 1fd0244 commit 58c1e84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/collection.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ export class Collection<TSchema extends Document = Document> {
621621
*/
622622
rename(newName: string): Promise<Collection>;
623623
rename(newName: string, callback: Callback<Collection>): void;
624-
rename(newName: string, options: RenameOptions): Promise<Collection> | void;
624+
rename(newName: string, options: RenameOptions): Promise<Collection>;
625625
rename(newName: string, options: RenameOptions, callback: Callback<Collection>): void;
626626
rename(
627627
newName: string,

0 commit comments

Comments
 (0)