PresidentSwap型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Cards handed over at the start of a round: the best cards up, whatever the receiver chooses back down.
インポート
import type { PresidentSwap } from "@johnmorrisdotca/toranpu/president";
定義
type PresidentSwap = {
from: number;
to: number;
cards: CardId[];
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
from | number | |
to | number | |
cards | string[] |
例
import type { PresidentSwap } from "@johnmorrisdotca/toranpu/president";
const value: PresidentSwap = { from: 0, to: 3, cards: ["3D", "4C"] };
console.log(value.cards);[ '3D', '4C' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。