Typescript error when extracting param matches when param is on the root route - TanStack