Skip to content

Commit

Permalink
feat: add types for the result of bulk initialize methods (#2654)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst authored Dec 2, 2020
1 parent 58e4252 commit 3e5ff57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1305,12 +1305,12 @@ export class Collection implements OperationParent {
}

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

/** 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. */
initializeOrderedBulkOp(options?: BulkWriteOptions): any {
initializeOrderedBulkOp(options?: BulkWriteOptions): OrderedBulkOperation {
return new OrderedBulkOperation(this, resolveOptions(this, options));
}

Expand Down

0 comments on commit 3e5ff57

Please sign in to comment.