votes
    Preparing search index...

    Type Alias TieBreakStep<C>

    Trace of one tiebreaker's work within a round.

    type TieBreakStep<C extends string> = {
        candidates: C[];
        index: number;
        name: string;
        ranking: C[][];
        remaining: C[];
        resolved: C[];
        scores?: Partial<Record<C, number>>;
    }

    Type Parameters

    • C extends string
    Index
    candidates: C[]

    Candidates that were tied going into this step.

    index: number

    Position among the round's tiebreakers: the method's built-in ones, then the Election methods after it.

    name: string

    The tiebreaker's label: its with() option, or its class's.

    ranking: C[][]

    Full ranking produced by the tiebreaker on candidates.

    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()).