UNPKG

687 BTypeScriptView Raw
1import type { Arbitrary } from '../arbitrary/definition/Arbitrary.js';
2import type { IProperty, IPropertyWithHooks, PropertyHookFunction } from './Property.generic.js';
3/**
4 * Instantiate a new {@link fast-check#IProperty}
5 * @param predicate - Assess the success of the property. Would be considered falsy if it throws or if its output evaluates to false
6 * @remarks Since 0.0.1
7 * @public
8 */
9declare function property<Ts extends [unknown, ...unknown[]]>(...args: [...arbitraries: {
10 [K in keyof Ts]: Arbitrary<Ts[K]>;
11}, predicate: (...args: Ts) => boolean | void]): IPropertyWithHooks<Ts>;
12export type { IProperty, IPropertyWithHooks, PropertyHookFunction };
13export { property };