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

Headers has incomplete type definition #12662

Open
pmbanugo opened this issue Jul 19, 2024 · 0 comments
Open

Headers has incomplete type definition #12662

pmbanugo opened this issue Jul 19, 2024 · 0 comments
Labels
bug Something isn't working typescript Something for TypeScript

Comments

@pmbanugo
Copy link

What version of Bun is running?

1.1.20

What platform is your computer?

No response

What steps can reproduce the bug?

The Headers type in Bun doesn't show as an iterable (using for-of) and doesn't include other methods such as entries(). However, they do work as iterables at runtime

What is the expected behavior?

Use the correct type for Headers as defined by the spec.

What do you see instead?

No response

Additional information

No response

@pmbanugo pmbanugo added bug Something isn't working typescript Something for TypeScript labels Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working typescript Something for TypeScript
Projects
None yet
Development

No branches or pull requests

1 participant