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): null | PreconditionFailure | PropertyFailure;
    shrink(value: Value<Ts>): Stream<Value<Ts>>;
}

Type Parameters

  • Ts

Hierarchy (View Summary)

Properties

runAfterEach: () => void

Run after each hook

Since 3.4.0

runBeforeEach: () => void

Run before each hook

Since 3.4.0

Methods