Getting the correct types for `options` and the result - TanStack