Type Alias Country

Country: {
    code: string;
    name: string;
    states: {
        code?: string;
        name?: string;
    }[];
}

Type declaration

  • code: string

    Country code

  • name: string

    Country name

  • states: {
        code?: string;
        name?: string;
    }[]

    This array contains all states available for a country. If states are not required or not applicable for a given country this array will be empty.