Reference · Options, materials, stacks and wear
StackPresettype
A count of cards for a stack, with where the number comes from: a deck of 52, a Pokémon deck of 60, a booster pack of about 10.
Import it
import type { StackPreset } from "@johnmorrisdotca/fuda-cards";
Definition
interface StackPreset {
id: string;
name: string;
count: number;
source: CardMaterialSource;
}
Members
| Name | Type | Description |
|---|---|---|
id | string | |
name | string | |
count | number | |
source | CardMaterialSource |
Examples
import { stackPresets, type StackPreset } from "@johnmorrisdotca/fuda-cards";
const first: StackPreset = stackPresets[0];
console.log(first.name, first.count); // Playing cards, 52 52Playing cards, 52 52What it prints (run when this page was built)