Skip to content

Commit

Permalink
Update types and data for cases like #36 and #132
Browse files Browse the repository at this point in the history
  • Loading branch information
dmythro committed Mar 4, 2024
1 parent e439041 commit dd18d7e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/countries/src/data/countries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export default {
capital: 'Mariehamn',
currency: ['EUR'],
languages: ['sv'],
partOf: 'FI',
},
AZ: {
name: 'Azerbaijan',
Expand Down Expand Up @@ -2212,6 +2213,7 @@ export default {
capital: 'Pristina',
currency: ['EUR'],
languages: ['sq', 'sr'],
userAssigned: true,
},
YE: {
name: 'Yemen',
Expand Down
9 changes: 8 additions & 1 deletion packages/countries/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,19 @@ export interface ICountry {
native: string
/**
* Specified in cases when entity is currently a part of another one.
* Example: Åland is an autonomous and demilitarised region of Finland and has own ISO code.
* See: https://en.wikipedia.org/wiki/Åland
*/
parent?: TCountryCode
partOf?: string
/**
* Calling phone codes.
*/
phone: number[]
/**
* Specified in cases when entity is not a part of the main ISO 3166-1 standart, but a User assigned code.
* See: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#User-assigned_code_elements
*/
userAssigned?: boolean
}

export interface ILanguage {
Expand Down

0 comments on commit dd18d7e

Please sign in to comment.