fast-check
Version:
Property based testing framework for JavaScript (like QuickCheck)
21 lines (20 loc) • 923 B
TypeScript
import { Arbitrary } from './definition/Arbitrary';
/**
* For arrays of values coming from `arb`
* @param arb - Arbitrary used to generate the values inside the array
*/
declare function array<T>(arb: Arbitrary<T>): Arbitrary<T[]>;
/**
* For arrays of values coming from `arb` having an upper bound size
* @param arb - Arbitrary used to generate the values inside the array
* @param maxLength - Upper bound of the generated array size
*/
declare function array<T>(arb: Arbitrary<T>, maxLength: number): Arbitrary<T[]>;
/**
* For arrays of values coming from `arb` having lower and upper bound size
* @param arb - Arbitrary used to generate the values inside the array
* @param minLength - Lower bound of the generated array size
* @param maxLength - Upper bound of the generated array size
*/
declare function array<T>(arb: Arbitrary<T>, minLength: number, maxLength: number): Arbitrary<T[]>;
export { array };