Skip to content

Fix type imports#26

Open
arjunyel wants to merge 1 commit into
MikeMcl:masterfrom
arjunyel:fix-types-2
Open

Fix type imports#26
arjunyel wants to merge 1 commit into
MikeMcl:masterfrom
arjunyel:fix-types-2

Conversation

@arjunyel

@arjunyel arjunyel commented Apr 24, 2024

Copy link
Copy Markdown

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