How to get listener fn type? - TanStack