fast-check
Version:
Property based testing framework for JavaScript (like QuickCheck)
9 lines (8 loc) • 416 B
TypeScript
import { Arbitrary } from './definition/Arbitrary';
/**
* For dictionaries with keys produced by `keyArb` and values from `valueArb`
* @param keyArb - Arbitrary used to generate the keys of the object
* @param valueArb - Arbitrary used to generate the values of the object
*/
declare function dictionary<T>(keyArb: Arbitrary<string>, valueArb: Arbitrary<T>): Arbitrary<Record<string, T>>;
export { dictionary };