Skip to main content

Variable: asyncProperty

const asyncProperty: <Ts>(...args) => Property<Ts> = property

Defined in: packages/fast-check/src/check/property/Property.ts:41

Instantiate a new fast-check#Property with a synchronous or asynchronous predicate

The predicate receives the generated values in order, followed by a PredicateExecutionContext.

Type Parameters​

Type Parameter
Ts extends [unknown, ...unknown[]]

Parameters​

ParameterType
...args[arbitraries: { [K in keyof Ts]: Arbitrary<Ts[K]> }, predicate: NoInfer<(...args) => Promise<boolean | void> | boolean | void>]

Returns​

Property<Ts>

Remarks​

Since 0.0.7

Deprecated​

Legacy name for property, starting at 5.0.0 what used to be called asyncProperty has replaced property