ClimbPlay型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What is on the table: the last cards played to this trick, and whose they were.
インポート
import type { ClimbPlay } from "@johnmorrisdotca/toranpu/big-two";
ほかのエクスポート元: @johnmorrisdotca/toranpu/president
定義
type ClimbPlay = {
seat: number;
cards: CardId[];
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
seat | number | |
cards | string[] |
例
import type { ClimbPlay } from "@johnmorrisdotca/toranpu/big-two";
const value: ClimbPlay = { seat: 0, cards: ["3D"] };
console.log(value.cards);[ '3D' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。