title: only refers to a type, but is being used as a value here
body: <p>I'm using TypeScript when writing this React Native app.
  Trying to create a simple action that takes a string as a param and updates state. But I get this error I don't understand.</p>
  
  <p><strong>src/containers/DamageClaimReceipt.tsx</strong></p>
  
  <pre><code>import * as React from "react"
  import { Text, View } from "react-native"
  import { Question } from "../components/Question"
  import GjeButton from "../components/GjeButton"
  import { bindActionCreators, Dispatch } from "redux"
  import { connect } from "react-redux"
  import {
    SetDamageClaimReceiptNrAction
  } from "../actions/processguide"
  
  const mapDispatchToProps = (dispatch: Dispatch&lt;any&gt;) =&gt; bindActionCreators({
    setDamageClaimReceiptNr: SetDamageClaimReceiptNrAction,
    // 'SetDamageClaimReceiptNrAction' only refers to a type, 
    // but is being used as a value here.
  }, dispatch)
  
  class DamageClaimReceipt extends React.Component&lt;any, any&gt; {
    public render() {
      return (
        &lt;View&gt;
  
         &lt;GjeButton
          title={"Set DamageClaimReceiptNr"}
          onPress={ () =&gt; this.props.setDamageClaimReceiptNr("100") }
        /&gt;
  
        &lt;/View&gt;
      )
    }
  }
  
  export default connect&lt;null, null&gt;(
    null,
    mapDispatchToProps,
  )(DamageClaimReceipt)
  </code></pre>
  
  <p><strong>src/actions/processguide.ts</strong></p>
  
  <pre><code> 10 export type SetDamageClaimReceiptNrAction =
   11   (damageClaimReceiptNr: string) =&gt; ISetDamageClaimReceiptNrAction
   12
   13 export interface ISetDamageClaimReceiptNrAction {
   14   type: actionTypes.SET_PROCESSGUIDE_RECEIPT_NR_FOR_CLAIM
   15   receiptNrForClaim: string
   16 }
  </code></pre>