votes
    Preparing search index...

    Interface TieBreakStep<C>

    Trace of one tiebreaker's work within a round.

    interface TieBreakStep<C extends string> {
        input: C[];
        ranking: C[][];
        remaining: C[];
        resolved: C[];
        scores?: Partial<Record<C, number>>;
        tbIndex: number;
        tbName: string;
    }

    Type Parameters

    • C extends string
    Index

    Properties

    input: C[]

    Candidates that were tied going into this step.

    ranking: C[][]

    Full ranking produced by the tiebreaker on input.

    remaining: C[]

    Candidates still tied after this step (last tier of ranking).

    resolved: C[]

    Candidates promoted out of the tie (upper tiers of ranking).

    scores?: Partial<Record<C, number>>

    Scores produced by the tiebreaker (when the method supports scores()).

    tbIndex: number

    Position in the tieBreakers array (0-based).

    tbName: string

    Constructor name of the tiebreaker method.