title: TypeScript types for React component where prop is an array of objects?
body: <p>My React component has a prop called <code>propWhichIsArray</code> which will be an array of objects. These objects will have an <code>id</code> which is an ID and <code>text</code> which is a string. How can you type this with TypeScript? </p>
  
  <pre><code>type Props = {
    propWhichIsArray: {
      id,
      text: string;  
    }[]
  };
  
  const Component: React.FC&lt;[Props]&gt; = ({ propWhichIsArray }) =&gt; {
    //
  </code></pre>
  
  <p>Im getting an error: </p>
  
  <blockquote>
    <p>Property 'propWhichIsArray' does not exist on type '[Props] &amp; { children?:
    ReactNode; }'.  TS2339</p>
  </blockquote>