Optional
depthLimit the depth of the object by increasing the probability to generate simple values (defined via values) as we go deeper in the object.
Since 2.20.0
Optional
keyArbitrary for keys
{@link string}
Since 0.0.7
Optional
maxMaximal depth allowed
Number.POSITIVE_INFINITY — defaulting seen as "max non specified" when defaultSizeToMaxWhenMaxSpecified=true
Since 0.0.7
Optional
maxMaximal number of keys
0x7fffffff — defaulting seen as "max non specified" when defaultSizeToMaxWhenMaxSpecified=true
Since 1.13.0
Optional
sizeDefine how large the generated values should be (at max)
Since 2.22.0
Optional
valuesArbitrary for values
{@link boolean}, {@link integer}, {@link double}, {@link string}, null, undefined, Number.NaN, +0, -0, Number.EPSILON, Number.MIN_VALUE, Number.MAX_VALUE, Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY
Since 0.0.7
Optional
withAlso generate BigInt
false
Since 1.26.0
Optional
withAlso generate boxed versions of values
false
Since 1.11.0
Optional
withAlso generate Date
false
Since 2.5.0
Optional
withAlso generate Map
false
Since 1.11.0
Optional
withAlso generate object with null prototype
false
Since 1.23.0
Optional
withAlso generate string representations of object instances
false
Since 1.17.0
Optional
withAlso generate Set
false
Since 1.11.0
Optional
withAlso generate sparse arrays (arrays with holes)
false
Since 2.13.0
Optional
withAlso generate typed arrays in: (Uint|Int)(8|16|32)Array and Float(32|64)Array Remark: no typed arrays made of bigint
false
Since 2.9.0
Generated using TypeDoc
Constraints for anything and object