Open
Description
openapi-fetch version
0.13.5
Description
I'm not able to use the fetch implementation from expo:
https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api
It seems like the types are incompatible between the global fetch and expo/fetch.
How can this be fixed?
Reproduction
import { fetch as expoFetch } from "expo/fetch"
export const API = createClient<paths>({
baseUrl: API_URL,
fetch: expoFetch as unknown as typeof globalThis.fetch
})
Expected result
expoFetch should be used as the fetch implementation.
Extra
- I’m willing to open a PR (see CONTRIBUTING.md)