@hegeldev/hegel
    Preparing search index...

    Type Alias InvariantCheck<S>

    InvariantCheck: (tc: TestCase, state: S) => void | Promise<void>

    The body of an invariant: throws (or, under runAsync, rejects) when the invariant is violated.

    Type Parameters

    • S

    Type Declaration

      • (tc: TestCase, state: S): void | Promise<void>
      • Parameters

        Returns void | Promise<void>