title: Prop does not exist on type 'PropsWithChildren' when trying to dispatch the action using react-redux
body: <p>I am getting this error while trying to dispatch the action:</p>
  <blockquote>
  <p>Property 'fetch_feed_loc' does not exist on type 'PropsWithChildren&lt;{ onSubmitForm: any; }&gt;'.</p>
  </blockquote>
  <blockquote>
  <p>Property 'fetch_feed_loc_srch' does not exist on type 'PropsWithChildren&lt;{ onSubmitForm: any; }&gt;'.</p>
  </blockquote>
  <p>But when I console.log props it is showing me the actions exist as the props.</p>
  <p><a href="https://i.stack.imgur.com/3PXUp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3PXUp.jpg" alt="enter image description here" /></a></p>
  <pre><code>import React, { useState } from 'react';
  import { useForm, Controller } from 'react-hook-form';
  import { IonLabel, IonInput, IonIcon, IonItem, IonButton, IonBadge, IonSelect, IonSelectOption } from '@ionic/react';
  import {navigateOutline} from 'ionicons/icons';
  import { connect } from 'react-redux';
  import { fetch_feed_loc, fetch_feed_loc_srch } from '../actions';
  
  const LocationSearch: React.FC&lt;{onSubmitForm: any}&gt; = props =&gt; {
  
      console.log(props);
  
      const [data, setData] = useState&lt;object&gt;({});
  
      const initialValues = {
          location: '',
          searchTerm: ''
      }
  
      const {control, handleSubmit, errors, formState, setValue} = useForm({
          defaultValues: initialValues,
          mode : 'onChange'
      })
  
      const onSubmit = (data: any) =&gt; {
          const submitttedData: any = data;
          setData(submitttedData);
          submitttedData.searchTerm == '' ? props.fetch_feed_loc(submitttedData.location) : props.fetch_feed_loc_srch(submitttedData.location, submitttedData.searchTerm)
      };
  
      return(
          &lt;div className=&quot;ion-padding&quot;&gt;
              &lt;form onSubmit={handleSubmit(onSubmit)} &gt;
                  &lt;IonItem className=&quot;cm-form-field&quot; lines=&quot;none&quot;&gt;
                      &lt;IonLabel position=&quot;floating&quot;&gt;Location&lt;/IonLabel&gt;
                      &lt;Controller
                          as={IonInput}
                          control={control}
                          onChangeName=&quot;onIonChange&quot;
                          onChange={([selected]) =&gt; {
                              return selected.detail.value;
                          }}
                          name=&quot;location&quot;
                          rules={{
                              required: true,
                          }}
                      /&gt;
                      {errors.location ? renderErrorMessage('location'): null }
                  &lt;/IonItem&gt;
                  &lt;IonItem className=&quot;cm-form-field&quot; lines=&quot;none&quot;&gt;
                      &lt;IonLabel position=&quot;floating&quot;&gt;Search&lt;/IonLabel&gt;
                      &lt;Controller
                          as={IonInput}
                          control={control}
                          onChangeName=&quot;onIonChange&quot;
                          onChange={([selected]) =&gt; {
                              return selected.detail.value;
                          }}
                          name=&quot;searchTerm&quot;
                          rules={{
                              minLength: { value: 3, message: &quot;Must be min 3 chars long&quot; }
                          }}
                      /&gt;
                  &lt;/IonItem&gt;
                  {errors.searchTerm ? renderErrorMessage('searchTerm'): null }
                  &lt;IonButton 
                      expand=&quot;block&quot; 
                      shape=&quot;round&quot; 
                      size=&quot;default&quot;
                      type=&quot;submit&quot;
                      disabled={formState.isValid === false}
                  &gt;
                      &lt;IonIcon slot=&quot;start&quot; icon={navigateOutline}&gt;&lt;/IonIcon&gt;
                      Submit
                  &lt;/IonButton&gt;
              &lt;/form&gt;
          &lt;/div&gt;
      )
  }
  
  export default connect(null, { fetch_feed_loc, fetch_feed_loc_srch })(LocationSearch);
  
  </code></pre>