title: Argument of type 'Function' is not assignable to parameter of type 'ComponentType<never>'
body: <p>I'm trying to pass a component to a <code>connect</code> method from <code>react-redux</code>. I'm getting this error:</p>
  <blockquote>
  <p>Argument of type 'Function' is not assignable to parameter of type 'ComponentType'.
  Type 'Function' is not assignable to type 'FunctionComponent'.
  Type 'Function' provides no match for the signature '(props: never, context?: any): ReactElement&lt;any, any&gt; | null'.</p>
  </blockquote>
  <p>Here's the container</p>
  <pre><code>const mapStateToProps = (state: globalStateType, ownProps: OffersProps) =&gt; ({
    ...state,
    ...ownProps,
  });
  
  const mapDispatchToProps = (dispatch: Function) =&gt; ({
    handleSetSelectedOfferId: (
      selectedOfferId: selectedOfferIdType,
    ): HandleSetSelectedOfferIdInterface =&gt; dispatch(setSelectedOfferId(selectedOfferId)),
  });
  
  export const OffersContainer = connect(mapStateToProps, mapDispatchToProps)(OffersComponent);
  </code></pre>
  <p>And here's the component:</p>
  <pre><code>export const OffersComponent: Function = ({ dataset }: OffersProps): JSX.Element[] =&gt; dataset.map(({
    id, firstName, city, price, image, description,
  }): React.ReactElement =&gt; (
    &lt;FlexWrapper key={id.$oid}&gt;
      &lt;OfferContainer
        id={id}
        firstName={firstName}
        city={city}
        price={price}
        image={image}
        description={description}
      /&gt;
    &lt;/FlexWrapper&gt;
  
  ));
  </code></pre>
  <p>Any idea what I'm missing?</p>
  <p>EDIT:</p>
  <p>Removing <code>Function</code> from</p>
  <pre><code>export const OffersComponent: Function = ({ dataset }: OffersProps): JSX.Element[] =&gt; dataset.map(({
  </code></pre>
  <p>So now it looks like this:</p>
  <pre><code>export const OffersComponent = ({ dataset }: OffersPropsInterface): JSX.Element[] =&gt; dataset.map(({
  </code></pre>
  <p>causes this error:</p>
  <blockquote>
  <p>Argument of type '({ dataset }: OffersPropsInterface) =&gt; JSX.Element[]' is not assignable to parameter of type 'ComponentType'.
  Type '({ dataset }: OffersPropsInterface) =&gt; JSX.Element[]' is not assignable to type 'FunctionComponent'.
  Type 'Element[]' is missing the following properties from type 'ReactElement&lt;any, any&gt;': type, props, key  TS2345</p>
  </blockquote>