Function assertDoesNotHave

  • Assertion function that throws if the provided Option is Some. This is useful for cases where you need to assert that an Option does not contain a value.

    Parameters

    • value: Option<any>

      The Option to check

    Returns asserts value is None

    If the Option is Some