RollOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
インポート
import type { RollOptions } from "@johnmorrisdotca/korokoro";
定義
type RollOptions = {
at?: number;
maxDice?: number;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
at (省略可) | number | undefined | When the roll is made, in epoch milliseconds. Now, unless given. |
maxDice (省略可) | number | undefined | The most dice the roll may have, from 10 (the default) to |
例
import type { RollOptions } from "@johnmorrisdotca/korokoro";
const value: RollOptions = { at: 0, maxDice: 20 };
console.log(value.maxDice);20出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。