Skip to content

Commit

Permalink
fix(NODE-3510): omit incorrect | void in declaration of Promise ove…
Browse files Browse the repository at this point in the history
…rload of `rename()` (#2922)
  • Loading branch information
justingrant authored Aug 2, 2021
1 parent 1fd0244 commit 58c1e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ export class Collection<TSchema extends Document = Document> {
*/
rename(newName: string): Promise<Collection>;
rename(newName: string, callback: Callback<Collection>): void;
rename(newName: string, options: RenameOptions): Promise<Collection> | void;
rename(newName: string, options: RenameOptions): Promise<Collection>;
rename(newName: string, options: RenameOptions, callback: Callback<Collection>): void;
rename(
newName: string,
Expand Down

0 comments on commit 58c1e84

Please sign in to comment.