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

types(connection): explicitly export connect(), createConnection() #15181

Closed
wants to merge 1 commit into from

Conversation

vkarpov15
Copy link
Collaborator

Re: #15178

Summary

Shouldn't be necessary to export these functions because they should be in global scope, but it shouldn't cause any problems and being explicit may help IDEs pick these up better.

Examples

Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

LGTM. To my knowledge, if something is in a declare module block, it shouldnt matter if it has export or not and still be accessible.

Edit: it seems to be a deno bug denoland/deno#27042, and this PR likely will not affect anything because of it.

@hasezoey hasezoey added the typescript Types or Types-test related issue / Pull Request label Jan 15, 2025
@vkarpov15
Copy link
Collaborator Author

Closing since this is unnecessary

@vkarpov15 vkarpov15 closed this Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Types or Types-test related issue / Pull Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants