Reference · Tiles, layouts and deals
MahjongBonusRuletype
How a flower or a season matches. group, the usual rule: any flower takes
any flower and any season any season. same: only an identical tile, and
the deal holds bonus tiles in identical pairs.
Import it
import type { MahjongBonusRule } from "@johnmorrisdotca/jarajara";
Definition
type MahjongBonusRule = "group" | "same";
Examples
import type { MahjongBonusRule } from "@johnmorrisdotca/jarajara";
const value: MahjongBonusRule = "group";
console.log(value);groupWhat it prints (run when this page was built)