DiceWarMove型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A move: the dice the people at the table rolled, by seat, such as { faces: { "0": [4] } }. The computers' dice are the seed's, so a table of computers is {}.
インポート
import type { DiceWarMove } from "@johnmorrisdotca/korokoro";
定義
type DiceWarMove = {
faces?: Record<string, readonly number[]>;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
faces (省略可) | Record<string, readonly number[]> | undefined |
例
import type { DiceWarMove } from "@johnmorrisdotca/korokoro";
const value: DiceWarMove = { faces: { "0": [3, 4] } };
console.log(value.faces);{ '0': [ 3, 4 ] }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。