fent / fent/randexp.js

Error with importing `RandExp`

Open
#121 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.