Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helper functions #96

Closed
seanonthenet opened this issue Dec 21, 2021 · 2 comments · Fixed by #110
Closed

Helper functions #96

seanonthenet opened this issue Dec 21, 2021 · 2 comments · Fixed by #110

Comments

@seanonthenet
Copy link

seanonthenet commented Dec 21, 2021

Some helper functions would be useful eg: getCode = (countryName: string) => string returning the country code.

Also this would help a lot if paired with #35 so lookups of codes from alternative country names could be much more reliable.

@dmythro
Copy link
Member

dmythro commented Dec 22, 2021

Adding some helpers with TypeScript upgrade. I should've release that a long time ago 🙁

@seanonthenet
Copy link
Author

Thanks - looking forward to it

@dmythro dmythro added the next label May 8, 2023
@dmythro dmythro moved this from Todo to In Progress in Countries Project May 8, 2023
@dmythro dmythro self-assigned this May 8, 2023
@dmythro dmythro linked a pull request May 8, 2023 that will close this issue
14 tasks
dmythro added a commit that referenced this issue Jul 18, 2023
dmythro added a commit that referenced this issue Jul 18, 2023
* feat: minor tweaks

* Tidy up data structures

* Add sideEffects to dist package #106

* Croatia currency change from HRK to EUR #107

* Some countries contain diacritic characters #103

* Data update: Swaziland has been renamed to Eswatini #72

* feat: update dist with recent data

* Error in SQL table structure #115

* feat: bump modules

* Data update: native field for Nepal #114

* feat: data rebuild

* fix: dep install

* Helper functions #96

* feat: data rebuild
@github-project-automation github-project-automation bot moved this from In Progress to Done in Countries Project Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants