I have a React component that takes an array of any type e.g.
type Props = {
options: any[];
renderItem: (any, i) => ReactNode
}
How do I edit the types such that the type of the first argument of renderItem is the element type of the options array?