Reference · Ship signal flags (International Code of Signals)
SignalIdtype
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 it
import type { SignalId } from "@johnmorrisdotca/hata/signals";
Definition
type SignalId = (typeof SIGNALS)[number]["id"];
Examples
import { type SignalId } from "@johnmorrisdotca/hata/signals";
const diver: SignalId = "ics:a";
console.log(diver);ics:aWhat it prints (run when this page was built)