Headers is not assignable to ClientOptions
darr1s opened this issue · 3 comments
darr1s commented
Description
It seems like ClientOptions interface did not include any fetch-related options.
Reproduction
I'm using version 0.0.8
Expected result
ClientOptions should extends fetch options.
Checklist
- I’m willing to open a PR (see CONTRIBUTING.md)
drwpow commented
Just published a new version that fixes a number of type issues. Can you see if the issue persists on the new version? Thanks!
drwpow commented
Also this should be working without type errors because it’s tested here. Note that the tests are in TypeScript, and so they’ll also throw with any type errors. I’d recommend updating to the latest version of TypeScript (5.0+, or 4.7+ at the least) and see if the error persists, too.
darr1s commented
Checked it works! Thanks!