( a: Interval | IntervalResult, b: Interval | IntervalResult )
| 22 | } |
| 23 | |
| 24 | /** A tri-state verdict, as the relations and connectives answer one. */ |
| 25 | function isVerdict(x: unknown): x is BoolInterval { |
| 26 | return x === 'true' || x === 'false' || x === 'maybe'; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * A value of this target's value model, as the compiled code passes one |
| 31 | * around: an enclosure (bare or kinded), a tri-state verdict, or an array of |
| 32 | * such values (a collection at a consuming position). The compiled call |
| 33 | * sites are untyped source; this type is what the helpers below accept and |
| 34 | * answer, so a caller inside the library sees the real domain. |
| 35 | */ |
| 36 | export type IntervalModelValue = |
| 37 | Interval | IntervalResult | BoolInterval | IntervalModelValue[]; |
no test coverage detected