SignalInfo型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What the package knows of one flag of the Code: its id, group, both names, meaning, status, note, source and aspect ratio.
インポート
import type { SignalInfo } from "@johnmorrisdotca/hata/signals";
定義
type SignalInfo = DrawnInfo;
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string | |
group | string | |
name | { en: string; ja: string; } | |
about | { en: string; ja: string; } | |
status | DrawnStatus | |
dates | { from: string | null; until: string | null; } | null | |
note | { en: string; ja: string; } | |
source | DrawnSource | |
aspect | number | |
restricted | DrawnRestriction | null | Why the drawing is withheld by default, or null. |
例
import { signalInfo, type SignalInfo } from "@johnmorrisdotca/hata/signals";
const info: SignalInfo | null = signalInfo("ics:a");
console.log(info?.name.en);A: Alfa出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。