title: Typescript errors when importing a "not exported" type, even though it is exported
body: <p>I'm using Typescript, React &amp; Redux (if relevant). My project structure:</p>
  
  <pre><code>/project
    /src
      /actions
        index.ts
        actions.ts
  </code></pre>
  
  <p><strong>index.ts</strong></p>
  
  <pre><code>import {
      Action,
  } from "./actions";
  
  export { Action }
  </code></pre>
  
  <p>I re-export <code>Actions</code> in <code>index.ts</code> so that other files (not under the <code>/actions</code> directory) can import the <code>Actions</code> type using <code>import { Action } from "./actions"</code></p>
  
  <p><strong>actions.ts</strong></p>
  
  <pre><code>// These are the general structures create each
  // async action
  type Request&lt;T&gt;  = { request: T }
  type Response&lt;T&gt; = { response: T }
  type Err         = { error: string }
  
  // Alias common types for requests &amp; responses
  type EmptyRequest = Request&lt;null&gt;
  type ValueRequest = Request&lt;{ value: number }&gt;
  
  export type Action
      // UI Actions
      = ({ type: "INCREMENT_COUNTER", delta: number })
      | ({ type: "RESET_COUNTER" })
      // Aync Actions
      | ({ type: "SAVE_COUNT_REQUEST" } &amp; ValueRequest)
      | ({ type: "SAVE_COUNT_SUCCESS" } &amp; Response&lt;{}&gt;)
      | ({ type: "SAVE_COUNT_FAILURE" } &amp; Err)
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>Type error: Module '"&lt;snipped path&gt;"' has no exported member 'Action'.
  TS2305
  </code></pre>
  
  <p>When I try to import <code>Action</code> <em>anywhere</em>.</p>
  
  <p>Any ideas?</p>