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:
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 :)
As of TypesScript v4.7,
fetch
now also acceptsURL
in addition toRequestInfo
for the first parameter. Updating theinput
type resolves the following error: