UNPKG

@half-elf/rogue

Version:

Utility library for all underhanded d20 needs.

15 lines (14 loc) 392 B
import { DiceResult } from 'dice-typescript'; export interface RollOptions { max?: boolean; min?: boolean; avg?: boolean; } export interface RollResult extends DiceResult { input: string; max?: number; min?: number; avg?: number; } export declare function roll(input: string): number; export declare function roll(input: string, options: RollOptions): RollResult;