Interface for asynchronous property, see IRawProperty

Since 1.19.0

interface IAsyncProperty<Ts> {
    runAfterEach?: (() => Promise<void>);
    runBeforeEach?: (() => Promise<void>);
    generate(mrng: Random, runId?: number): Value<Ts>;
    isAsync(): true;
    run(v: Ts, dontRunHook?: boolean): Promise<null | PreconditionFailure | PropertyFailure>;
    shrink(value: Value<Ts>): Stream<Value<Ts>>;
}

Type Parameters

  • Ts

Hierarchy (view full)

Properties

runAfterEach?: (() => Promise<void>)

Run after each hook

Since 3.4.0

runBeforeEach?: (() => Promise<void>)

Run before each hook

Since 3.4.0

Methods