UNPKG

dice-typescript

Version:

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

5 lines (4 loc) 304 B
import { ExpressionNode } from '../ast'; import { DiceInterpreter } from './dice-interpreter.class'; import { InterpreterError } from './error-message.class'; export declare type FunctionDefinition = (interpreter: DiceInterpreter, functionNode: ExpressionNode, errors: InterpreterError[]) => number;