Reference · Rolls and exact odds
RollOptionstype
Import it
import type { RollOptions } from "@johnmorrisdotca/korokoro";
Definition
type RollOptions = {
at?: number;
maxDice?: number;
};
Members
| Name | Type | Description |
|---|---|---|
at (optional) | number | undefined | When the roll is made, in epoch milliseconds. Now, unless given. |
maxDice (optional) | number | undefined | The most dice the roll may have, from 10 (the default) to |
Examples
import type { RollOptions } from "@johnmorrisdotca/korokoro";
const value: RollOptions = { at: 0, maxDice: 20 };
console.log(value.maxDice);20What it prints (run when this page was built)