Reference · Tiles, Mexican Train and replay
TRAIN_LENGTHSconstant
The full and short round-count choices for a game.
Import it
import { TRAIN_LENGTHS } from "@johnmorrisdotca/domino";
Definition
const TRAIN_LENGTHS: { readonly full: "full"; readonly short: "short"; } = { full: "full", short: "short" } as const satisfies Record<TrainLength, TrainLength>
Members
| Name | Type | Description |
|---|---|---|
full | "full" | |
short | "short" |
Examples
import { TRAIN_LENGTHS } from "@johnmorrisdotca/domino";
console.log(TRAIN_LENGTHS);{ full: 'full', short: 'short' }What it prints (run when this page was built)