Reference · Tiles, Mexican Train and replay
TrainPhasetype
Whether the game is playing, awaiting the next round, or finished.
Import it
import type { TrainPhase } from "@johnmorrisdotca/domino";
Definition
type TrainPhase = "playing" | "roundOver" | "finished";
Examples
import type { TrainPhase } from "@johnmorrisdotca/domino";
const value: TrainPhase = "playing";
console.log(value);playingWhat it prints (run when this page was built)