sindresorhus / ky

🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API
MIT License
13.62k stars 363 forks source link

Unable to extend NormalizedOptions + Options #523

Closed seanmcquaid closed 1 year ago

seanmcquaid commented 1 year ago

ky version: 1.0.0

Due to the newest release moving both NormalizedOptions + Options from interfaces to types, it is not possible to do any sort of module augmentation. In my case, I am passing in some custom parameters to be used in an API client with ky.create. Is there anyway we can revert these back to interfaces to allow for module augmentation? I am happy to put up a PR for this if needed!

seanmcquaid commented 1 year ago

Thank you so much for such a quick fix here @sindresorhus! Thank you for everything you're doing