mledoze / countries

World countries in JSON, CSV, XML and Yaml. Any help is welcome!
https://mledoze.github.io/countries/
Open Data Commons Open Database License v1.0
5.99k stars 1.27k forks source link

Bug! #547

Closed wavewa closed 3 weeks ago

wavewa commented 1 month ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch world-countries@4.1.1 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/world-countries/index.d.ts b/node_modules/world-countries/index.d.ts
index aee9883..f265b65 100644
--- a/node_modules/world-countries/index.d.ts
+++ b/node_modules/world-countries/index.d.ts
@@ -42,7 +42,7 @@ export interface Country {
   languages: { [languageCode: string]: string }
   translations: { [languageCode: string]: OfficialAndCommon }
   latlng: [number, number]
-  demonyms: { [languageCode: string]?: Demonyms }
+  demonyms: { [languageCode: string]: Demonyms }
   landlocked: boolean
   borders: string[]
   area: number

This issue body was partially generated by patch-package.

mledoze commented 3 weeks ago

Hi, this was fixed by #483