8000 types(connection): add Connection.prototype.bulkWrite() to types by vkarpov15 · Pull Request #15368 · Automattic/mongoose · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

types(connection): add Connection.prototype.bulkWrite() to types #15368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

vkarpov15
Copy link
Collaborator

Fix #15359
Re: #15058

Summary

Missed a spot when adding Connection.prototype.bulkWrite() support in #15058: need TypeScript types as well.

Examples

@vkarpov15 vkarpov15 added this to the 8.13.3 milestone Apr 22, 2025
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds TypeScript support for Connection.prototype.bulkWrite(), addressing a missing type definition as highlighted in issue #15359. It also strengthens test coverage by adding TS assertions in test/types/connection.test.ts and updates the JavaScript test in test/connection.test.js to verify bulkWrite's return values.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/types/connection.test.ts Introduces TypeScript tests for the new bulkWrite() method.
test/connection.test.js Updates the bulkWrite() test to capture and assert return values.

Copy link
Collaborator
@AbdelrahmanHafez AbdelrahmanHafez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@vkarpov15 vkarpov15 merged commit 95a03cb into master Apr 23, 2025
62 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-15359 branch April 23, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Types] Connection.prototype.bulkWrite type signature
3 participants
0