QueryOptions as generic prop
queryClient.prefetchQuery(props.prefetch)My problem is to properly implement the prop type via typescript.
I have some queries set up via queryOptions like so
Now in my Link component it looks like this
And this is how i want to use it
This works perfectly, But how can i set the prefetch prop in Link to its correct type?
PrefetchQuery expects the type FetchQueryOptions but it has four generics i dont know how to type.
Repro: https://codesandbox.io/p/live/2835ffbd-85f5-4048-8035-c307b7516032