jefflau / jest-fetch-mock

Jest mock for fetch
MIT License
881 stars 116 forks source link

chore(types): fetch now also accepts URL in addition to RequestInfo #238

Closed alessbell closed 1 year ago

alessbell commented 1 year ago

As of TypesScript v4.7, fetch now also accepts URL in addition to RequestInfo for the first parameter. Updating the input type resolves the following error:

CleanShot 2022-07-15 at 14 35 50@2x
alessbell commented 1 year ago

Hi @jefflau 👋 Thank you for your work here! Wondering if you are still accepting contributions, and if it'd be possible to get this PR looked at to unblock TS v4.7 compatibility. Cheers :)