the generic fetch method's input parameter is typed as URL | RequestInfo, but ember-fetch only types it as RequestInfo. This causes issues when passing fetch as a function parameter in typescript, because ember-fetch is not assignable to regular ol' fetch.
the generic
fetch
method's input parameter is typed asURL | RequestInfo
, but ember-fetch only types it asRequestInfo
. This causes issues when passingfetch
as a function parameter in typescript, because ember-fetch is not assignable to regular ol' fetch.see this TS playground for example: playground link
fix should be easy, just modify the types in
index.d.ts
, happy to make the PR