title: Problem adding a module and namespace to same TS declaration file
body: <p>for some reason as soon as I add the module declaration, it breaks the previous JSX namespace code</p>
  <p><strong>my.d.ts</strong></p>
  <pre><code>declare namespace JSX {
      interface IntrinsicAttributes {
          store?: any;
      }
  }
  
  import { AriaAttributes, DOMAttributes } from 'react';
  
  declare module 'react' {
      interface HTMLAttributes&lt;T&gt; extends AriaAttributes, DOMAttributes&lt;T&gt; {
          details?: string;
      }
  }
  </code></pre>
  <p>So at first everything was fine when I just had the <code>declare namespace JSX</code> code.  I added that because my tests were sending in a <code>store</code> prop to React/Redux and it didn't see store as a prop.</p>
  <p>But after I added the <strong>module</strong> for another issue with my tests where I needed to account for a details prop, then it breaks my previous code that defined store and the test that was working fine after I defined that store prop is now breaking saying store again is not defined.</p>
  <p>Am I supposed to combine this stuff in one file in a certain way here?  What's breaking the statements here?</p>