title: How can I write Action for redux action generators?
body: <p>those are the actions.</p>
  <pre><code>export const fetchProductsStart = () =&gt; ({
    type: ProductListActionTypes.PRODUCT_LIST_START,
  });
  
  export const fetchProductSuccess = (products: IProduct) =&gt; ({
    type: ProductListActionTypes.PRODUCT_LIST_SUCCESS,
    payload: products,
  });
  
  export const fetchProductFailure = (error: any) =&gt; ({
    type: ProductListActionTypes.PRODUCT_LIST_FAILURE,
    payload: error,
  });
  </code></pre>
  <p>I wrote Action like this:</p>
  <pre><code>export type Action =
    | ReturnType&lt;typeof fetchProductsStart&gt;
    | ReturnType&lt;typeof fetchProductSuccess&gt;
    | ReturnType&lt;typeof fetchProductFailure&gt;;
  </code></pre>
  <p>I passed this to the reducer's Action type</p>
  <pre><code> case ProductListActionTypes.PRODUCT_LIST_SUCCESS:
        return { loading: false, products: action.payload };
      case ProductListActionTypes.PRODUCT_LIST_FAILURE:
        return { loading: false, error: action.payload };
  </code></pre>
  <p>I got warning for <code>action.payload</code>. it says &quot;Property 'payload' does not exist on type Action&quot;</p>