Reference · Rockets, variants, parts and the fit check
lightModefunction
The Lights choice, from the attribute or the address. Anything else is all.
Import it
import { lightMode } from "@johnmorrisdotca/uchusen-rockets";
Definition
function lightMode(value: string | null | undefined): "off" | "running" | "all"
Parameters
| Name | Type | Description |
|---|---|---|
value | string | null | undefined | The text, or nothing when the attribute was left out. |
Returns
"all" | "off" | "running"
off, running or all.
Examples
import { lightMode } from "@johnmorrisdotca/uchusen-rockets";
console.log(lightMode("running"), lightMode(null));running allWhat it prints (run when this page was built)