FlagTag型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One thing that is on a flag, and where the claim comes from.
インポート
import type { FlagTag } from "@johnmorrisdotca/hata/manifest";
ほかのエクスポート元: @johnmorrisdotca/hata/search
定義
interface FlagTag {
tag: TagName;
source: TagSource;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
tag | TagName | The tag, of the closed list: see |
source | TagSource | Where it comes from: see |
例
import { tagsOf, type FlagTag } from "@johnmorrisdotca/hata/search";
const germany: readonly FlagTag[] = tagsOf("DE");
console.log(germany); // [{ tag: "plain", source: "computed" }, { tag: "stripes-horizontal", source: "computed" }][
{ tag: 'plain', source: 'computed' },
{ tag: 'stripes-horizontal', source: 'computed' }
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。