StackPreset型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 type { StackPreset } from "@johnmorrisdotca/fuda-cards";
定義
interface StackPreset {
id: string;
name: string;
count: number;
source: CardMaterialSource;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string | |
name | string | |
count | number | |
source | CardMaterialSource |
例
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 52出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。