UNPKG

dice-typescript

Version:

A TypeScript library for parsing dice rolling expressions, most commonly used in tabletop RPGs.

8 lines (7 loc) 292 B
import { ExpressionNode } from '../ast'; export declare class Result { readonly reducedExpression: ExpressionNode; readonly renderedExpression: string; readonly total: number; constructor(reducedExpression: ExpressionNode, renderedExpression: string, total: number); }