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
query
I have my $fetch function created like so:
export const $fetch = createFetch({ baseURL: 'https://api.themoviedb.org/3', schema: createSchema({ '/movie/:movieId': { params: z.object({ movieId: z.string(), }), query: z .object({ append_to_response: z.array(z.enum(['recommendations', 'similar', 'reviews'])), }) .default({ append_to_response: ['recommendations'], }), }, }), });
but when using that endpoint
tmdbApi('/movie/:movieId', { params: { movieId: '12345' } });
I get the following TS error
The call itself still does properly add the zod default object but something with the types are off.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have my $fetch function created like so:
but when using that endpoint
I get the following TS error
The call itself still does properly add the zod default object but something with the types are off.
The text was updated successfully, but these errors were encountered: