Skip to main content

Interface: MapConstraints

Defined in: packages/fast-check/src/arbitrary/map.ts:18

Constraints to be applied on map

Remarks

Since 4.4.0

Properties

depthIdentifier?

optional depthIdentifier?: string | DepthIdentifier

Defined in: packages/fast-check/src/arbitrary/map.ts:44

Depth identifier can be used to share the current depth between several instances.

By default, if not specified, each instance of map will have its own depth. In other words: you can have depth=1 in one while you have depth=100 in another one.

Remarks

Since 4.4.0


maxKeys?

optional maxKeys?: number

Defined in: packages/fast-check/src/arbitrary/map.ts:30

Upper bound for the number of entries defined into the generated instance

Default Value

0x7fffffff

Remarks

Since 4.4.0


minKeys?

optional minKeys?: number

Defined in: packages/fast-check/src/arbitrary/map.ts:24

Lower bound for the number of entries defined into the generated instance

Default Value

0

Remarks

Since 4.4.0


size?

optional size?: SizeForArbitrary

Defined in: packages/fast-check/src/arbitrary/map.ts:35

Define how large the generated values should be (at max)

Remarks

Since 4.4.0