DeckLanding型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How a card taken off a pile lands on the pile at its side: still facing up, or turned over sideways (as a person turns a card, like a
page) to show its back. upside-down was a 0.6.0 value that spun the picture half way round in its plane; it is still accepted and
means face-down, so nothing breaks. A card never ends with its picture on its head.
インポート
import type { DeckLanding } from "@johnmorrisdotca/fuda-cards/collection";
定義
type DeckLanding = "face-up" | "face-down" | "upside-down";
例
import { normalizeLanding, type DeckLanding } from "@johnmorrisdotca/fuda-cards/collection";
const old: DeckLanding = "upside-down";
console.log(normalizeLanding(old)); // face-downface-down出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。