title: How to import with typescript an exported const in javascript
body: <p>I'm using typescript 2.6.1. I'm using react-table and in its index.js file, it declares:</p>
  
  <pre><code>import defaultProps from './defaultProps'
  import propTypes from './propTypes'
  
  export const ReactTableDefaults = defaultProps
  export default class ReactTable extends Methods(Lifecycle(Component)) ...
  </code></pre>
  
  <p>In my typescriptfile, I would like to use the ReactTableDefaults member, but I don't know how to access it. I already have an import for the react-table types defined in their @types/react-table/index.d.ts file. When I try to access the ReactTableDefaults, intellij can't find it. Could someone help me find the right import statement?</p>
  
  <pre><code>import ReactTable, {Column as RTColumn} from 'react-table'; //gets stuff from index.d.ts
  import RT = require('react-table'); // can only see 'default'
  </code></pre>
  
  <p>I've also tried</p>
  
  <pre><code>import ReactTableDefaults from 'react-table';
  </code></pre>
  
  <p>But the ts transpiler just says that ReactTableDefaults can't be found.</p>
  
  <p>EDIT: The ReactTableDefaults is not defined in the index.d.ts file. I'm trying to get it from the module file.</p>