Reference · Cards, hands and piles
CardFaceContexttype
What a card's face function is told: the language the card speaks, and the design it names.
Import it
import type { CardFaceContext } from "@johnmorrisdotca/toranpu/element";
Also exported from: @johnmorrisdotca/toranpu/element/define
Definition
type CardFaceContext = {
language: Language;
design: "plain" | "four-colour" | CardDesign | null;
};
Members
| Name | Type | Description |
|---|---|---|
language | Language | |
design | "plain" | "four-colour" | CardDesign | null |
Examples
import type { CardFaceContext } from "@johnmorrisdotca/toranpu/element";
const value: CardFaceContext = { language: "en", design: "plain" };
console.log(value.language);enWhat it prints (run when this page was built)