Skip to content

@dice-roller/rpg-dice-roller / dice / ResolvedDie

Interface: ResolvedDie โ€‹

Defined in: src/dice/types.ts:89

A die with every value resolved to a plain number, and a roll() that always exists.

Extends โ€‹

Properties โ€‹

average โ€‹

readonly average: number

Defined in: src/dice/types.ts:84

Inherited from โ€‹

DieSnapshot.average


faceCount โ€‹

readonly faceCount: number

Defined in: src/dice/types.ts:85

Inherited from โ€‹

DieSnapshot.faceCount


max โ€‹

readonly max: number

Defined in: src/dice/types.ts:83

Inherited from โ€‹

DieSnapshot.max


min โ€‹

readonly min: number

Defined in: src/dice/types.ts:82

Inherited from โ€‹

DieSnapshot.min


notation โ€‹

readonly notation: string

Defined in: src/dice/types.ts:81

Inherited from โ€‹

DieSnapshot.notation


source โ€‹

readonly source: DieLike

Defined in: src/dice/types.ts:92

The die that was resolved.

Methods โ€‹

roll() โ€‹

roll(generator): number

Defined in: src/dice/types.ts:90

Parameters โ€‹

generator โ€‹

NumberGenerator

Returns โ€‹

number

MIT Licensed ยท Credits