LucianoGanga / country-codes-list

List of codes per country (languages, calling codes, currency codes, etc)
MIT License
97 stars 48 forks source link

Wrong return type of customArray? #25

Closed scheidtdav closed 1 year ago

scheidtdav commented 1 year ago

I am using this awesome library with Typescript and came across customArray. Its just what I wanted, but it seems that the return type is string[]. Shouldn't it be something similar to {value: string, name: string}[]?

paranicistefan1 commented 1 year ago

I'm having the same problem over here

scheidtdav commented 1 year ago

Closed #30 in favor of #31 which includes a more accurate implementation of types.

LucianoPaci commented 1 year ago

Hi everyone! Thanks for contributing. This was fixed on v1.6.11