bitcoinjs / bip44-constants

This package provides BIP44 coin constants as found here: https://github.com/satoshilabs/slips/blob/master/slip-0044.md
MIT License
88 stars 63 forks source link

error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier. #63

Closed AntonioVentilii closed 5 months ago

AntonioVentilii commented 5 months ago

The package raises an error when installed:

> tsc --emitDeclarationOnly --outDir dist/types

node_modules/bip44-constants/index.d.ts:12:1 - error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.

12 const entries: Entry[];
   ~~~~~

Found 1 error in node_modules/bip44-constants/index.d.ts:12

I had open PR #62 to solve it, but it seems it was closed. Is there a better solution?

junderw commented 5 months ago

Fixed https://github.com/bitcoinjs/bip44-constants/commit/c5092d656a2722063259289f6b973c1a0a8904a5

AntonioVentilii-DFINITY commented 5 months ago

thank you!!!