Skip to content
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

add type for createCollections #14295

Merged
merged 3 commits into from Jan 25, 2024
Merged

add type for createCollections #14295

merged 3 commits into from Jan 25, 2024

Conversation

IslandRhythms
Copy link
Collaborator

closes #14279

Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

Remove the expectError and should be good

@@ -20,6 +20,8 @@ conn.readyState === 99;

expectError(conn.readyState = 0);

expectError(conn.createCollections());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this expectError here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You said to write a test showing it could be used in typescript.

Copy link
Collaborator

Choose a reason for hiding this comment

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

expectError() means you expect the code within to cause a TypeScript compiler error. The problem isn't the test, just the expectError().

@vkarpov15 vkarpov15 merged commit 33c624e into master Jan 25, 2024
5 checks passed
@vkarpov15 vkarpov15 deleted the IslandRhythms/gh-14279 branch January 25, 2024 20:26
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.

Type definition for Connection.prototype.createCollections() not in connections.d.ts
2 participants