SuitDisplaytype
How a suit is written and drawn.
Import it
import type { SuitDisplay } from "@johnmorrisdotca/toranpu/deck";
Definition
type SuitDisplay = {
symbol: string;
name: string;
colour: SuitColour;
};
Members
| Name | Type | Description |
|---|---|---|
symbol | string | The Unicode suit, for a sentence or an aria label: ♠ ♥ ♦ ♣. |
name | string | Its name in English, lower case, as a sentence uses it. |
colour | SuitColour |
Examples
import type { SuitDisplay } from "@johnmorrisdotca/toranpu/deck";
import { SUIT_DISPLAY } from "@johnmorrisdotca/toranpu/deck";
const value: SuitDisplay = SUIT_DISPLAY.spades;
console.log(value.symbol);♠What it prints (run when this page was built)