In the environment I'm using typescript 2.6.1. Within react-table's index.js file, there is a declaration that looks like this:
import defaultProps from './defaultProps'
import propTypes from './propTypes'
export const ReactTableDefaults = defaultProps
export default class ReactTable extends Methods(Lifecycle(Component)) ...
In my typescript file, I am interested in accessing the ReactTableDefaults member. However, I'm having trouble figuring out the correct way to access it. I have already imported the react-table types from their @types/react-table/index.d.ts file. When I attempt to access ReactTableDefaults, my IDE cannot locate it. Can anyone provide me with the correct import statement?
import ReactTable, {Column as RTColumn} from 'react-table'; // pulling from index.d.ts
import RT = require('react-table'); // only showing 'default'
I have also attempted:
import ReactTableDefaults from 'react-table';
Unfortunately, the transpiler for typescript indicates that ReactTableDefaults cannot be found.
EDIT: It appears that ReactTableDefaults is not defined in the index.d.ts file. I am attempting to access it from the module file.