How to type select fn - TanStack