Arbitrary
Annotations
ArbitraryAnnotation type
Added in v3.10.0
Source
Signature
type ArbitraryAnnotation<A, TypeParameters extends ReadonlyArray<any> = readonly []> = (
...arbitraries: [
...{ [K in keyof TypeParameters]: LazyArbitrary<TypeParameters[K]> },
ctx: ArbitraryGenerationContext,
]
) => LazyArbitrary<A>;ArbitraryGenerationContext interface
Added in v3.10.0
Source
Signature
interface ArbitraryGenerationContext {
readonly constraints?:
| StringConstraints
| NumberConstraints
| BigIntConstraints
| DateConstraints
| ArrayConstraints;
readonly depthIdentifier?: string;
readonly maxDepth: number;
}Arbitrary
Model
LazyArbitrary interface
Added in v3.10.0
Source
Signature
interface LazyArbitrary<A> {
(fc: __module): Arbitrary<A>;
}
Returns a fast-check Arbitrary for the
Atype of the provided schema.