readHitotsuOptions関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
House rules as something sent them, checked for shape, or null.
インポート
import { readHitotsuOptions } from "@johnmorrisdotca/hitotsu";
定義
function readHitotsuOptions(value: unknown): HitotsuOptions | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
value | unknown | The unknown card, move or rules value to validate. |
戻り値
HitotsuOptions | null
Validated house rules, or null when the object does not have the supported fields and values.
例
import { HITOTSU_PARTY, readHitotsuOptions } from "@johnmorrisdotca/hitotsu";
console.log(readHitotsuOptions(HITOTSU_PARTY));{
stacking: 'any',
jumpIn: true,
sevenZero: true,
drawToMatch: false,
wildFour: 'challenge',
deal: 5
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。