Reference · Rockets, variants, parts and the fit check
TiltModetype
Whether tilting a device turns the view: off, ask (the browser must ask first, as on iOS) or on.
Import it
import type { TiltMode } from "@johnmorrisdotca/uchusen-rockets";
Definition
type TiltMode = "off" | "ask" | "on";
Examples
import type { TiltMode } from "@johnmorrisdotca/uchusen-rockets";
const mode: TiltMode = "ask";
console.log(mode);askWhat it prints (run when this page was built)