title: Typesafe action creators in redux
body: <p>I've failed countless times forgetting to extract connected action creator from props like this:</p>
  
  <pre><code>import {actionCreator} from 'my-actions';
  interface Props {
    actionCreator: typeof (actionCreator);
  }
  
  const Foo: React.SFC&lt;Props&gt; = (props) =&gt; {
    // oh, i forgot to take actionCreator from props
    // const { actionCreator } = props; 
  
    return (&lt;Button 
      onClick={actionCreator} // Santa, I wish it would fail to compile this, can you make it throw an error?
    /&gt;); 
  } 
  
  export const mapDispatch = (dispatch: Dispatch&lt;Action&gt;) =&gt; {
    return bindActionCreators({
       actionCreator,
    }, dispatch);
  }
  
  export const ConnectedFoo = connect(null, mapDispatch)
  </code></pre>
  
  <p>The above will silently compile, but you will not see any action in redux.</p>