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

Remarks

Since 1.18.0

interface WeightedArbitrary<T> {
    arbitrary: Arbitrary<T>;
    weight: number;
}

Type Parameters

  • T

Properties

Properties

arbitrary: Arbitrary<T>

Instance of Arbitrary

Remarks

Since 0.0.7

weight: number

Weight to be applied when selecting which arbitrary should be used

Remarks

Since 0.0.7