UNPKG

751 BTypeScriptView Raw
1import type { Arbitrary } from '../arbitrary/definition/Arbitrary.js';
2import type { IAsyncProperty, IAsyncPropertyWithHooks, AsyncPropertyHookFunction } from './AsyncProperty.generic.js';
3/**
4 * Instantiate a new {@link fast-check#IAsyncProperty}
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.7
7 * @public
8 */
9declare function asyncProperty<Ts extends [unknown, ...unknown[]]>(...args: [...arbitraries: {
10 [K in keyof Ts]: Arbitrary<Ts[K]>;
11}, predicate: (...args: Ts) => Promise<boolean | void>]): IAsyncPropertyWithHooks<Ts>;
12export type { IAsyncProperty, IAsyncPropertyWithHooks, AsyncPropertyHookFunction };
13export { asyncProperty };