courthive-components 6.10.0 → 6.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,6 +27,10 @@ export declare class InlineScoringManager {
27
27
  addGame(matchUpId: string, winner: 0 | 1, baseMatchUp: MatchUp): MatchUp | undefined;
28
28
  /**
29
29
  * Add a set score. Used in 'entry' mode.
30
+ *
31
+ * The factory judges the total by its segment's rule and refuses a total that is not a fact (a negative
32
+ * or non-integer score): that refusal records nothing and returns undefined, as input on a completed
33
+ * match does. An input the engine ignores (`recorded: false`) returns undefined too.
30
34
  */
31
35
  addSet(matchUpId: string, side1Score: number, side2Score: number, baseMatchUp: MatchUp): MatchUp | undefined;
32
36
  undo(matchUpId: string, baseMatchUp: MatchUp): MatchUp | undefined;
@@ -8,3 +8,12 @@ import { SetScore } from '../types';
8
8
  * deciding-point or win-by format (`P32DP`, `P32WB2`) never ends level, so it is never a completed tie.
9
9
  */
10
10
  export declare function isCompletedCombinedPointTie(sets: SetScore[], matchUpFormat?: string): boolean;
11
+ /**
12
+ * A match the factory completes with no winner: the combined-point tie above, and (factory 7.16, #5612)
13
+ * an exactly or aggregate count that closes level with no declared decider, such as `HAL2X-S:TB11` at one
14
+ * half each or `SET2XA-S:T10` level on games. The score dialogs judge completion by a winner, so they ask
15
+ * the factory: the entered sets are played through its ScoringEngine as set totals, and the result is a
16
+ * tie when the engine completes the match and names no winner. A set the engine refuses or ignores (one
17
+ * past the close) is not a completed tie.
18
+ */
19
+ export declare function isCompletedLevelClose(sets: SetScore[], matchUpFormat?: string): boolean;