currency-codes
currency-codes copied to clipboard
Type definition of `numbers` is incorrect
This type definition is incorrect: https://github.com/freeall/currency-codes/blob/6de7fe6c3cdbe094b917dad7de77af0d9141cae5/index.d.ts#L18
The 'number' field in data is a string. There are two solutions to this:
- Update the definition to
string[]
- Pass the value through the number constructor to make it a number
I'd be happy to open a PR for whichever solution is prefered. Personally, I'd prefer number
to be an array of numbers :)