We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.13.5
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?
import { fetch as expoFetch } from "expo/fetch" export const API = createClient<paths>({ baseUrl: API_URL, fetch: expoFetch as unknown as typeof globalThis.fetch })
expoFetch should be used as the fetch implementation.
The text was updated successfully, but these errors were encountered:
For instance, the same approach seems to work with Vercel AI SDK.
https://sdk.vercel.ai/docs/getting-started/expo#wire-up-the-ui
Sorry, something went wrong.
No branches or pull requests
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
Expected result
expoFetch should be used as the fetch implementation.
Extra
The text was updated successfully, but these errors were encountered: