OrganisationId型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The id of an organisation's flag, written exactly as this package writes it: org: and a lower-case slug.
Country and region codes never contain a colon, so no organisation id can be taken for one.
インポート
import type { OrganisationId } from "@johnmorrisdotca/hata/organisations";
定義
type OrganisationId = (typeof ORGANISATIONS)[number]["id"];
例
import { type OrganisationId } from "@johnmorrisdotca/hata/organisations";
const european: OrganisationId = "org:eu";
console.log(european);org:eu出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。