Reference · Withdrawn country codes
WithdrawnCountrytype
A country that was withdrawn from ISO 3166-1, as ISO 3166-3 lists it (frozen).
Import it
import type { WithdrawnCountry } from "@johnmorrisdotca/kuni/withdrawn";
Definition
interface WithdrawnCountry {
code: string;
alpha2: string;
alpha3?: string;
numeric?: string;
name: {
en: string;
ja: string | null;
};
since: string;
until: string;
successors: readonly string[];
reusedBy?: string;
}
Members
| Name | Type | Description |
|---|---|---|
code | string | The four-letter ISO 3166-3 code: "SUHH" for the Soviet Union. Its first two letters are the alpha-2 code. |
alpha2 | string | The ISO 3166-1 alpha-2 code it held: "SU". |
alpha3 (optional) | string | undefined | The alpha-3 code it held, "SUN", as ISO 3166-3 lists it. |
numeric (optional) | string | undefined | The numeric code it held, "810"; absent where ISO 3166-3 lists none (Gilbert and Ellice Islands, New Hebrides). |
name | { en: string; ja: string | null; } | Its name in English and Japanese; |
since | string | The year its code came into force, "1974" (a full day, "1974-12-15", where Wikidata gives one). |
until | string | The year its code was withdrawn, "1992", or a full day, "1990-08-14". |
successors | readonly string[] | The new codes ISO 3166-3 lists for it, in ISO's order: ["AM", "AZ", ...] for the Soviet Union. A successor may itself
be withdrawn: Yugoslavia's is "CS", which |
reusedBy (optional) | string | undefined | Set when the alpha-2 code was later given to a current country, so that the code means two things in time: "BY" was the Byelorussian SSR and is Belarus. The value is that country's alpha-2 code. Absent for codes nobody has been given again (SU, YU, CS, DD, ZR, TP, AN, BU). |
Examples
import type { WithdrawnCountry } from "@johnmorrisdotca/kuni/withdrawn";
import { withdrawn } from "@johnmorrisdotca/kuni/withdrawn";
const value: WithdrawnCountry = withdrawn("SU")[0]!;
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'code', 'alpha2', 'name', 'since', 'until', 'successors' ]What it prints (run when this page was built)