drwpow/openapi-fetch

Headers is not assignable to ClientOptions

darr1s opened this issue · 3 comments

Description

It seems like ClientOptions interface did not include any fetch-related options.

image

image

Reproduction

I'm using version 0.0.8

Expected result

ClientOptions should extends fetch options.

Checklist

Just published a new version that fixes a number of type issues. Can you see if the issue persists on the new version? Thanks!

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.

Checked it works! Thanks!