Error with importing `RandExp`
Open
- Dominant language
- JavaScript
- Stars
- 1.9k
- Forks
- 94
- PR merge metrics
- No merged PRs in 30d
Description
Typescript docs say that you should import `RandExp` like this `import RandExp from 'randexp';`, but this does not work. This will work if you add `"esModuleInterop": true,` in your `tsconfig.json`.
Docs should provide correct default way of importing package, which is `import * as RandExp from 'randexp';`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.