Skip to content

@dice-roller/rpg-dice-roller / presenters / isExpressionResult

Function: isExpressionResult() ​

isExpressionResult(target): target is ExpressionResult

Defined in: src/presenters/Presentable.ts:34

Narrows a presentable to an expression result by the presence of type. This is a shallow shape check, not validation of the result or its type.

Parameters ​

target ​

Presentable

Returns ​

target is ExpressionResult

MIT Licensed · Credits