Reference · Tile and table elements
TileReftype
Tiles as a method is given them: a number is the place of one tile in the rack as it was written (tiles), from 0;
a letter or a name ("F", "east", "3p") is every tile of that face; a list is each of its parts.
Import it
import type { TileRef } from "@johnmorrisdotca/jarajara/element";
Definition
type TileRef = number | string | readonly (number | string)[];
Examples
import type { TileRef } from "@johnmorrisdotca/jarajara/element";
const value: TileRef = [0,1,2];
console.log(value);[ 0, 1, 2 ]What it prints (run when this page was built)