Skip to content

Fix type imports #26

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix type imports #26

wants to merge 1 commit into from

Conversation

arjunyel
Copy link

@arjunyel arjunyel commented Apr 24, 2024

https://arethetypeswrong.github.io/?p=decimal.js-light%402.5.1

Without this change I get the error:

import { Decimal } from "decimal.js-light";
         ^

SyntaxError: The requested module 'decimal.js-light' does not provide an export named 'Decimal'

Fix types by copying decimal.d.ts to decimal.d.mts.

Test with: npx @arethetypeswrong/cli@latest --pack .

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant