Interface for asynchronous property, see IRawProperty

Remarks

Since 1.19.0

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

Type Parameters

  • Ts

Hierarchy (view full)

Properties

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

Run after each hook

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

Remarks

Since 3.4.0

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

Run before each hook

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

Remarks

Since 3.4.0

Methods