Reference · Flag source and framing metadata
HistoricalEratype
The years a former country existed and the other codes that find its flag: the ISO 3166-1 alpha-2 and alpha-3 it had and the IOC's three letters. Only a former country's record has one; a present-day place's has none.
Import it
import type { HistoricalEra } from "@johnmorrisdotca/hata/manifest";
Definition
interface HistoricalEra {
from: string;
until: string;
aliases: string[];
}
Members
| Name | Type | Description |
|---|---|---|
from | string | The first year of the state (not of the flag in the record: a variant has its own dates), as a year. |
until | string | The last year of the state, as a year. |
aliases | string[] | The other codes that find it: "SU", "SUN" and "URS" for the Soviet Union. None is a code of a flag itself, and none is shared with another place. |
Examples
import { manifest, type HistoricalEra } from "@johnmorrisdotca/hata/manifest";
const era: HistoricalEra | undefined = manifest("SUHH")?.historical;
console.log(era?.from); // "1922"
console.log(era?.until); // "1991"
console.log(era?.aliases); // ["SU", "SUN", "URS"]1922
1991
[ 'SU', 'SUN', 'URS' ]What it prints (run when this page was built)