SignalId型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The id of one of the Code's flags, written exactly as this package writes it: ics: and a lower-case slug. A letter is ics:a
to ics:z, a numeral pennant ics:0 to ics:9, a substitute ics:sub-1 to ics:sub-3 and the answering pennant ics:answer.
The Navy's special pennants are usn: and a slug (usn:turn, usn:corpen, usn:substitute-4). No country or region code contains a colon,
so none of these can be taken for one.
インポート
import type { SignalId } from "@johnmorrisdotca/hata/signals";
定義
type SignalId = (typeof SIGNALS)[number]["id"];
例
import { type SignalId } from "@johnmorrisdotca/hata/signals";
const diver: SignalId = "ics:a";
console.log(diver);ics:a出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。