We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Something is off in the Typescript types: they work with commonjs, but it wouldn't compile when I upgrade my project to ESM.
I figured out a workaround, but it is ugly:
import HaikunatorImpl from 'haikunator'; const Haikunator = HaikunatorImpl as unknown as typeof HaikunatorImpl.default;
The text was updated successfully, but these errors were encountered:
Do you have any project that can reproduce this? My projects are all full TS + ESM nowadays and I don't have any type issues.
import Haikunator from "haikunator"; const haikunator = new Haikunator(); const test = haikunator.haikunate()
Sorry, something went wrong.
No branches or pull requests
Something is off in the Typescript types: they work with commonjs, but it wouldn't compile when I upgrade my project to ESM.
I figured out a workaround, but it is ugly:
The text was updated successfully, but these errors were encountered: