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 and ljhaywar committed Nov 9, 2021
1 parent 1bec8d7 commit d2eb75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collection.ts
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 d2eb75b

Please sign in to comment.