UNPKG

@randsum/dice

Version:

A flexible, type-safe dice roller for tabletop RPGs, game development, and probability simulations

8 lines (6 loc) 226 B
import type { NumericRollParams, RollParams } from '../types' export function isNumericRollParams( poolParameters: RollParams ): poolParameters is NumericRollParams { return !Array.isArray(poolParameters.options.sides) }