Open OwenVey opened 1 month ago
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.
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.