deckLandings定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The two ways a card can land, with the label on each button: face-up (still facing up) and face-down (turned over sideways on the way).
インポート
import { deckLandings } from "@johnmorrisdotca/fuda-cards/collection";
定義
const deckLandings: readonly { id: "face-up" | "face-down"; label: string; }[] = [
{ id: "face-up", label: "Still facing up" },
{ id: "face-down", label: "Turned over" },
]
例
import { deckLandings } from "@johnmorrisdotca/fuda-cards/collection";
console.log(deckLandings.map((landing) => landing.id)); // [ 'face-up', 'face-down' ][ 'face-up', 'face-down' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。