Question about type-inference - TanStack