roll-parser - v3.0.0-beta.0
    Preparing search index...

    Type Alias EvaluateOptions

    Options for the evaluate function.

    type EvaluateOptions = {
        context?: Record<string, number>;
        maxDice?: number;
        maxExplodeIterations?: number;
        maxRerollIterations?: number;
        notation?: string;
        onMissingVariable?: "throw" | "zero";
    }
    Index
    context?: Record<string, number>

    Variable context for @name / @{name} references (default: empty)

    maxDice?: number

    Maximum total dice allowed per evaluation (default: 10,000)

    maxExplodeIterations?: number

    Maximum explosion iterations allowed per die (default: 1,000)

    maxRerollIterations?: number

    Maximum reroll iterations allowed per die (default: 1,000)

    notation?: string

    Original notation string (for result metadata)

    onMissingVariable?: "throw" | "zero"

    Behavior when a referenced variable is missing from context (default: 'throw')