HistoricalEra型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 type { HistoricalEra } from "@johnmorrisdotca/hata/manifest";
定義
interface HistoricalEra {
from: string;
until: string;
aliases: string[];
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
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. |
例
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' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。