dutyOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Which job a material's glow has. A name that is not a lamp is engine glow, and follows the Engines switch.
インポート
import { dutyOf } from "@johnmorrisdotca/uchusen-rockets";
定義
function dutyOf(material: string): LampDuty
引数
| 名前 | 型 | 説明 |
|---|---|---|
material | string | A material name. |
戻り値
LampDuty
running (steady), flash (the white anti-collision), beacon (the slow red), work (floods, pools, docking and work lamps) or engine.
例
import { dutyOf } from "@johnmorrisdotca/uchusen-rockets";
console.log(dutyOf("nav-red"), dutyOf("strobe"), dutyOf("steel"));running flash engine出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。