@dice-roller/rpg-dice-roller / presenters / isRoll
Function: isRoll() ​
isRoll(
target):target is Roll<unknown, DrawMode>
Defined in: src/presenters/Presentable.ts:20
Narrows a presentable to a roll by its shape: no type property and a result property. This is not validation of arbitrary input; lookalike objects can match.
Parameters ​
target ​
Returns ​
target is Roll<unknown, DrawMode>