Closed chmac closed 5 years ago
Thanks for the PR @chmac I would merge this PR as it gives better type hints
@eugef Awesome, thanks for merging. Any timeline on when this will show up on NPM?
@eugef can you publish a new version on npm? Would love to consume these changes form @chmac
@chmac @michaelknoch i will release asap today or tomorrow
new version 1.8.0
is out
This is a completely copy of the full IncomingHeaders type defined here https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e9e404ac8e23dcafd02f57db02915d848c4454b3/types/node/http.d.ts#L9-L64
I'll submit a second PR in a second which adds a shorter but compatible type so you could merge that one if you prefer. I would recommend this PR thought as it seems to be the most accurate.