Typing the `location` in the `loader` function in `createFileRoute`.
Hi, I've searched all through the internet but I cannot find a solution. I currently have this Route declaration:
The part that's tripping me up is the:
My IDE is complaining that
And is ALSO passed to
How do I type the
The part that's tripping me up is the:
My IDE is complaining that
businessId doesn't exist on location.search. Even though my validateSearch has the rootSearchSchema which is imported from __root.tsxAnd is ALSO passed to
createRootRouteWithContext. Like so:How do I type the
location inside of the loader function to tell it that, yes, businessId exists on location.search here?