Open
Description
Summary:
Using typescript, if I import with import ReactModal from 'react-modal';
then ReactModal
is undefined. It usually means that the module has no default export.
import * as ReactModal from 'react-modal';
works but does not satisfy the definitions from @types/react-modal@2.2.1
Steps to reproduce:
test.ts
import ReactModal from 'react-modal';
console.log(ReactModal);
ts-node test.ts
Expected behavior:
Should log a component but logs undefined