Skip to content

@dice-roller/rpg-dice-roller / results / withCalculationValue

Function: withCalculationValue() ​

withCalculationValue<T>(item, calculationValue): T

Defined in: src/results/die-result.ts:36

Returns a copy with a new calculationValue, keeping value.

Type Parameters ​

T ​

T extends ScoredItem

Parameters ​

item ​

T

calculationValue ​

number

Returns ​

T

MIT Licensed · Credits