Closed bohjak closed 4 years ago
I think your Deno version is out of date. __domTypes.HeadersInit
doesn't exist anymore as of Deno 0.41.0. I made the change in commit https://github.com/sholladay/pogo/pull/14/commits/4ca49964f734ee4fb037a4772fc21c33cb7d31b3 while working on PR #14, soon after updating the version of Deno used in CI.
For what it's worth, I did update the support statement in the README:
Supports Deno v0.41.0 and higher.
I know it's hard to notice these things, though. Deno needs better tooling around this. We basically need the equivalent of npm's engineStrict
.
I'm going to close this issue since I think you just need to update Deno, but please do let me know if I am wrong! :)
It seems that
headers
inside theResponseOptions
interface is using a type that is not defined in the file:HeadersInit
. I fixed it locally by replacing it with__domTypes.HeadersInit
, which is used by theHeaders
constructor:I also noticed that in the commit history this type was used at one point. Was there a purpose to replacing it? Otherwise I can create a PR with the fix.