Replies: 1 comment
-
Writing like so seems to fix the issue const fetchClient = createFetchClient<paths, "application/ld+json">({
baseUrl: PublicConfig.network.apiUrl,
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an API that returns application/json or application/ld+json.
I've been able to specify the desired format using
This works if I change for /json too.
But typescript still yield both types when using useQuery for OpenAPIClient.
Is there anyway to make it understand I'll have only one or the other all time ?
Beta Was this translation helpful? Give feedback.
All reactions