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

Since 1.18.0

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

Type Parameters

  • T

Properties

Properties

arbitrary: Arbitrary<T>

Instance of Arbitrary

Since 0.0.7

weight: number

Weight to be applied when selecting which arbitrary should be used

Since 0.0.7