Reference · Ship signal flags (International Code of Signals)
signalInfofunction
Everything the package knows of a flag: its group (letter, numeral, substitute or answer), both names, its meaning, its status
(official: the design is the Code's own), a note on how it was drawn, the page it was read from and its aspect ratio. A copy.
Import it
import { signalInfo } from "@johnmorrisdotca/hata/signals";
Definition
function signalInfo(id: string): DrawnInfo | null
Parameters
| Name | Type | Description |
|---|---|---|
id | string | A flag's id, in any case, with or without |
Returns
DrawnInfo | null
The record, or null when the Code has no such flag.
Examples
import { signalInfo } from "@johnmorrisdotca/hata/signals";
console.log(signalInfo("ics:a")?.group); // "letter"
console.log(signalInfo("ics:a")?.source.kind); // "official"letter
officialWhat it prints (run when this page was built)