Reference · Game engine and table
HitotsuColourtype
A card's colour: red, yellow, green or blue. A wild card has none until it is played and one is called.
Import it
import type { HitotsuColour } from "@johnmorrisdotca/hitotsu";
Definition
type HitotsuColour = "R" | "Y" | "G" | "B";
Examples
import type { HitotsuColour } from "@johnmorrisdotca/hitotsu";
const value: HitotsuColour = "R";
console.log(value);RWhat it prints (run when this page was built)