title: reactstrap with typescript, define ambient module
body: <p>I want to use <code>reactstrap</code> with typescript.</p>
  
  <p>There are typings for these typings: <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/reactstrap/index.d.ts" rel="nofollow noreferrer">https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/reactstrap/index.d.ts</a></p>
  
  <p>Reactstrap is availabe on page as <code>Reactstrap</code> global variable. I thought adding it in ambient module would be as simple as adding <code>react</code> and <code>react dom</code></p>
  
  <p>Here's my <code>global.d.ts</code></p>
  
  <pre><code>import * as react from "react"
  import * as react_dom from "react-dom"
  import * as reactstrap from "reactstrap"
  
  declare global {
      type React = typeof react
      type ReactDOM = typeof react_dom
      type Reactstrap = typeof reactstrap
  }
  </code></pre>
  
  <p>I can use <code>React.Component</code> and jsx without importing, it's available globally. But i can't use <code>Reactstrap.Alert</code>, tsc says that<code>Reactstrap.Alert</code> is a type but used like a value.</p>
  
  <p>I can manually add this string <code>export as namespace Reactstrap</code> in a d.ts file, but it looks like a hack, and this changes are not stored in my git repo. Is it possible to export all classes from one d.ts and put it into namespace of another?</p>