src/country.interface.ts
Properties |
altSpellings |
altSpellings:
|
Type : [string]
|
area |
area:
|
Type : number
|
borders |
borders:
|
Type : [string]
|
callingCode |
callingCode:
|
Type : [number]
|
capital |
capital:
|
Type : string
|
cca2 |
cca2:
|
Type : string
|
cca3 |
cca3:
|
Type : string
|
ccn3 |
ccn3:
|
Type : string
|
cioc |
cioc:
|
Type : string
|
currency |
currency:
|
Type : [string]
|
demonym |
demonym:
|
Type : string
|
landlocked |
landlocked:
|
Type : boolean
|
languages |
languages:
|
Type : literal type
|
latlng |
latlng:
|
Type : [number]
|
name |
name:
|
Type : literal type
|
region |
region:
|
Type : string
|
subregion |
subregion:
|
Type : string
|
tld |
tld:
|
Type : [string]
|
translations |
translations:
|
Type : literal type
|
export interface ICountry {
name: {
common: string;
official: string;
native?: {
[key: string]: {
official: string;
common: string;
}
}
};
tld: [string];
cca2: string;
ccn3: string;
cca3: string;
cioc: string;
currency: [string];
callingCode: [number];
capital: string;
altSpellings: [string];
region: string;
subregion: string;
languages: {
bar: string
};
translations: {
[key: string]: {
official: string;
common: string;
};
};
latlng: [number];
demonym: string;
landlocked: boolean;
borders: [string];
area: number;
}