Interface for synchronous property, see IRawProperty

Since 1.19.0

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

Type Parameters

  • Ts

Hierarchy (view full)

Properties

runAfterEach?: (() => void)

Run after each hook

Since 3.4.0

runBeforeEach?: (() => void)

Run before each hook

Since 3.4.0

Methods