You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
layershifter
changed the title
Flags - types of property "name" are incompatible
Flags: types of property "name" are incompatible
Jun 27, 2018
layershifter
changed the title
Flags: types of property "name" are incompatible
Flag: types of property "name" are incompatible
Jun 27, 2018
I'm using TypeScript, and I'm getting this error when trying to enter a name into the "name" property
<Flag name={ip.countryCode} />
In the definition file, the name property is a huge list of allowed strings:
name: 'ad' | 'andorra' | 'ae' | 'united arab emirates' | 'uae' .....
The proper way to do this is to export that huge list, such as "FlagNameValues"
`name: FlagNameValues'
So I can mark the field as countryCode: string | FlagNameValues
Then we would not get this error when trying to use a dynamic value (which would be 99.99999% of use cases)
Will this be fixed?
The text was updated successfully, but these errors were encountered: