Skip to content

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant