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,