本文へ移動

Hata旗

国や地域の旗を読み込み、対応する表示の形を選び、絵ごとの資料・作者・ライセンスを保てます。

「旗(はた)」は、旗を表す日本語です。 名前について(英語)

目次

リファレンス · 旗の資料と表示の情報

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[];
}

メンバー

名前型説明
fromstring

The first year of the state (not of the flag in the record: a variant has its own dates), as a year.

untilstring

The last year of the state, as a year.

aliasesstring[]

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' ]

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/hata 1.31.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。