@dice-roller/rpg-dice-roller / presenters / isRoll
Function: isRoll()
isRoll(
target):target is Roll<unknown>
Defined in: src/presenters/Presentable.ts:18
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>