Type Alias Country

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

Type declaration

  • Optionalcode?: string

    Country code

  • Optionalname?: string

    Country name

  • Optionalstates?: {
        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.