@dice-roller/rpg-dice-roller
Version:
An advanced JS based dice roller that can roll various types of dice and modifiers, along with mathematical equations.
16 lines (15 loc) • 477 B
TypeScript
export default DieActionValueError;
/**
* An error thrown when an invalid die action (e.g. Exploding on a d1) occurs
*/
declare class DieActionValueError extends Error {
/**
* Create a `DieActionValueError`
*
* @param {StandardDice} die The die the action was on
* @param {string|null} [action=null] The invalid action
*/
constructor(die: StandardDice, action?: string | null | undefined);
action: string | null;
die: StandardDice;
}