Skip to main content

Interface: WeightedArbitrary<T>

Defined in: packages/fast-check/src/arbitrary/oneof.ts:15

Conjonction of a weight and an arbitrary used by oneof in order to generate values

Remarks

Since 1.18.0

Type Parameters

Type Parameter
T

Properties

arbitrary

arbitrary: Arbitrary<T>

Defined in: packages/fast-check/src/arbitrary/oneof.ts:25

Instance of Arbitrary

Remarks

Since 0.0.7


weight

weight: number

Defined in: packages/fast-check/src/arbitrary/oneof.ts:20

Weight to be applied when selecting which arbitrary should be used

Remarks

Since 0.0.7