Reference · Ship signal flags (International Code of Signals)
SignalInfotype
What the package knows of one flag of the Code: its id, group, both names, meaning, status, note, source and aspect ratio.
Import it
import type { SignalInfo } from "@johnmorrisdotca/hata/signals";
Definition
type SignalInfo = DrawnInfo;
Members
| Name | Type | Description |
|---|---|---|
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. |
Examples
import { signalInfo, type SignalInfo } from "@johnmorrisdotca/hata/signals";
const info: SignalInfo | null = signalInfo("ics:a");
console.log(info?.name.en);A: AlfaWhat it prints (run when this page was built)