Skip to content

Commit 3e5ff57

Browse files
authored
feat: add types for the result of bulk initialize methods (#2654)
NODE-2932
1 parent 58e4252 commit 3e5ff57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/collection.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1305,12 +1305,12 @@ export class Collection implements OperationParent {
13051305
}
13061306

13071307
/** Initiate an Out of order batch write operation. All operations will be buffered into insert/update/remove commands executed out of order. */
1308-
initializeUnorderedBulkOp(options?: BulkWriteOptions): any {
1308+
initializeUnorderedBulkOp(options?: BulkWriteOptions): UnorderedBulkOperation {
13091309
return new UnorderedBulkOperation(this, resolveOptions(this, options));
13101310
}
13111311

13121312
/** Initiate an In order bulk write operation. Operations will be serially executed in the order they are added, creating a new operation for each switch in types. */
1313-
initializeOrderedBulkOp(options?: BulkWriteOptions): any {
1313+
initializeOrderedBulkOp(options?: BulkWriteOptions): OrderedBulkOperation {
13141314
return new OrderedBulkOperation(this, resolveOptions(this, options));
13151315
}
13161316

0 commit comments

Comments
 (0)