Reference · Options, materials, stacks and wear
CardMaterialGrouptype
The kind of stock a material is: plain paper card, plastic, a thick trading-card stock or metal.
Import it
import type { CardMaterialGroup } from "@johnmorrisdotca/fuda-cards";
Definition
type CardMaterialGroup = "paper" | "plastic" | "thick-card" | "metal";
Examples
import { cardMaterials, type CardMaterialGroup } from "@johnmorrisdotca/fuda-cards";
const group: CardMaterialGroup = "metal";
console.log(cardMaterials.filter((material) => material.group === group).map((material) => material.id)); // [ 'aluminium-0.8', 'steel-0.5' ][ 'aluminium-0.8', 'steel-0.5' ]What it prints (run when this page was built)